Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   wtf (http://zelaron.com/forum/showthread.php?t=32865)

nddwind 2004-09-01 03:26 AM

wtf
 
If anyone can figure this out than help me? kthx

$var = PixelGetColor( 117 , 341 )
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))

Im using this to get the pixel colors for the current window in the channel lobby.
If i run in window mode the value is always like 1c1c1c even when im over the color gold so wtf? non windowed mode works fine.

is there a way to make it work in windowed mode?

Death 2004-09-01 06:54 AM

If you want to know th pixel color , just use auto-it spy or something like that , its included in ai3

Vollstrecker 2004-09-01 06:57 AM

`Insolence` had a script that did something similar to what you want it to, and worked somewhat ok for recording coords, problem is, the color it recorded was your mouse-pointer...

What I do is use the AutoIt Window Spy, get the coords I want, then use something simple like this:

Code:

AutoItSetOption("PixelCoordMode", 0)
AutoItSetOption("MouseCoordMode", 0)


WinActivate("Diablo II")
Sleep(2000)

$color = PixelGetColor(453, 462)

Iniwrite("C:\Documents and Settings\Vollstrecker\My Documents\Anti-Idle\Color.ini", "PixelColor", "Color", $color)


`Insolence` 2004-09-01 12:05 PM

NDDWind, stop posting your AutoIT problems here, post them in the autoit official forums.

Simply create a script to record pixels, but, the trick is to record the pixel 1 second after the hotkey has been triggered. (move your mouse away from the area so it doesn't interfer)

Vollstrecker 2004-09-01 03:38 PM

Quote:

Originally Posted by `Insolence`
Simply create a script to record pixels, but, the trick is to record the pixel 1 second after the hotkey has been triggered. (move your mouse away from the area so it doesn't interfer)

Wouldn't it be easier for it to record the coords, IniWrite them, have it move the mouse, then run a PixelGetColor with your coords that were recorded?

`Insolence` 2004-09-01 05:18 PM

Iniwrite the coords?

Yeah, I suppose having autoit move the mouse for you automatically would be nice :)

You could also go a step further, and just write 'if PixelGetColor(x,y) <> 0000000 then' and automate it that much more... AND have a 'MouseMove(x,y,clicks,speed)'

blckshdwdragon 2004-09-01 05:52 PM

post in the correct place, nddwind

Vollstrecker 2004-09-02 07:22 AM

Quote:

Originally Posted by `Insolence`
Yeah, I suppose having autoit move the mouse for you automatically would be nice :)

We craqqas are lazy, I automate whatever I can. ;)


All times are GMT -6. The time now is 10:12 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.