Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

PixelGetColor problems

$
0
0
hello all, I am new to autoit and am trying to write my own code

My program is using the PixelGetColor function and it is returning some weird values when I am checking my values using :  http://www.mathsisfun.com/hexadecimal-decimal-colors.html

I am completely confused as to why...

Could anyone please explain to me, I am using the autoit help file as well, but i still do not know why I am getting these values

[ autoit ]         
Global $Paused HotKeySet( "{HOME}", "FindPixel" ) ; Always running, the main loop While 1 WEnd ; Enable Pause Func FindPixel() $Paused = Not $Paused $pos = MouseGetPos() $PixelColour = PixelGetColor( $pos[ 0 ], $pos[ 1 ] ) ; PixelGetColor ( x , y [, hwnd] ) MsgBox( 0, "Mouse x,y: ", $pos[ 0 ] & "," & $pos[ 1 ] ) MsgBox( 0, "PixelColour: ", Hex( $PixelColour, 6 ) ) While $Paused Sleep( 10 ) ToolTip( 'Script is Paused', 0, 0 ) WEnd ToolTip( "" ) EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>