Code: Select all
IfWinActive, Game Name
\::reload#
$[::
loop
{
pixelGetColor, pixel1, 75, 48, RGB
sleep 800
if pixel1 = 0xFCD69C
{
pixelGetColor, pixel2, 2211, 85, RGB
sleep 800
if pixel2 = 0x83082F
{
run, C:\AHk\Scripts\moose_and_squirrel.wav
pause
}
else
click 2667, 138 ; <------ This sometimes fails to execute. What debug statement(s) can I use to see what is happening here
sleep 4000
send ^{click, 1708, 818}
sleep 1000
click 865, 598
sleep 1000
}
else
sleep 80
}
return