Function Reference


PixelGetColor

Returns a pixel color according to x,y pixel coordinates.

PixelGetColor ( x , y [, hwnd] )

Parameters

x x coordinate of pixel.
y y coordinate of pixel.
hwnd [optional] Window handle to be used.

Return Value

Success: Returns decimal value of pixel's color.
Failure: Returns -1 if invalid coordinates.

Remarks

None

Related

PixelSearch, PixelCoordMode (Option), MouseGetPos, PixelChecksum

Example


Local $var = PixelGetColor(10, 100)
MsgBox(0, "The decimal color is", $var)
MsgBox(0, "The hex color is", Hex($var, 6))