Code: Select all
LAlt::
SetMouseDelay,-1
CoordMode, Pixel, Relative
CoordMode, Mouse, Relative
Loop
{
Sleep 1000
PixelSearch, Px, Py, 430, 60, 1210, 850, 0x130000, 5, Fast RGB
if ErrorLevel,
Return
else
Click, %Px%, %Py%
Loop
{
;This is where it keeps messing up, it keeps flashing that the color is currently found even though it's not there
Sleep 250
PixelSearch, Px, Py, 1000, 50, 1140, 70, 0x1A561D, 5, Fast RGB
if !ErrorLevel,
MsgBox, Color not found!
break
else
tooltip, color currently found
Sleep 500
tooltip
}
Sleep 1000
}
MsgBox, Script Ended.
Esc::ExitApp