Code: Select all
Pixelgetcolor, Color, 580, 471
if (Color==0x784498)
{
Send, {1}
}
Code: Select all
Pixelgetcolor, Color, 580, 471
if (Color==0x784498)
{
Send, {1}
}
Code: Select all
x = 580
y = 471
WinGetActiveTitle, title
MouseMove, x, y
PixelGetColor, bgr, x, y ; Blue-Green-Red
MsgBox, 64, Color, Title: %title%`n`nBGR color (0xbbggrr): %bgr%
Code: Select all
#InstallKeybdHook
#Persistent
x = 580
y = 471
target := 0x784498
WinGetActiveTitle, title
MouseMove, x, y
PixelGetColor, bgr, x, y ; Blue-Green-Red
MsgBox, 64, Color, Title: %title%`n`nBGR color (0xbbggrr): %bgr%
If (bgr = target) {
Send 1
MsgBox, 64, Success, Worked!
} Else MsgBox, 48, Failure, Not!
KeyHistory