Read Screen Pixel Data At XY Position

#Persistent
SetTimer, GETCOLOR, 1000 ; pick up current color
;SetTimer, GETMOUSEPOS, 1000 ; get mouse position
return

GETMOUSEPOS:
MouseGetPos Xpos, Ypos
ToolTip, %Xpos% %Ypos%
return


GETCOLOR:
;MouseGetPos Xpos, Ypos
;15x 1030y; for Editor
;6x 1020y ; for LIVE
Xpos := 6
Ypos := 1020

PixelGetColor Colour, %Xpos%, %Ypos%, RGB

StringTrimLeft Colour, Colour, 2                    ; Remove 0x

;ToolTip, %Colour%

;Send {3} ; hotkey 3

switch Colour
{
    case "E89500": ToolTip, %Colour% It's orange
    case "FFFFFF": ToolTip, %Colour% It's white
    case "0000FF": ToolTip, %Colour% It's blue
    case "FF0000": ToolTip, %Colour% It's red
    case "00FF00": ToolTip, %Colour% It's green

    default:      ToolTip, %Colour% Inactive.
}



return

Latest Posts