Code: Select all
#Requires AutoHotkey v1.1.33.11
CoordMode, mouse, Screen
CoordMode, Pixel, Screen
F1::
Loop {
pixelsearch, Bx, By, 550, 200, 1850, 1450, B97A57, , Fast RGB
if (ErrorLevel = 0) {
Msgbox RED found at coordinates: %Bx%, %By%
}
else {
sleep 2000
}
}