Method Reference
PixelGetColor
Returns a pixel color according to x,y pixel coordinates
PixelGetColor x , y
Parameters
x | x coordinate of pixel. |
y | y coordinate of pixel. |
Return Value
Success: | Returns decimal value of pixel's color. |
Failure: | Returns -1 if invalid coordinates. |
Related
MouseGetPosX, MouseGetPosY, PixelCoordMode (Option), PixelSearch
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") var = oAutoIt.PixelGetColor( 10 , 100 ) WScript.Echo "The color is" & var