hi,
i have to find the color of a pixel in a game. i used this script
sleep(7000)
; now get in the game
$pos = MouseGetPos()
$var = PixelGetColor($pos[0],$pos[1])
$var2 = PixelGetColor(150,180)
MsgBox(0,"mousposition: ",$pos[0] &" "& $pos[1])
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))
MsgBox(0,"var2 (dec): ", $var2)
MsgBox(0,"var2 (hex):", Hex($var2, 6))
exit
i always get the answer of color dec:0 hex:000000
when im outside of the game it works and i get a color back.
what should i do to get the right color?
bye
bartmon
ps: sry for my bad english