Code: Select all
End:: pause
Numpad1::
{
Reload
}
return
Numpad0::
{
var := 0
goto Process
}
return
Process:
PixelSearch, Px, Py, color, 835, 440, 1060, 640, RGB
If ((shooting == False) && (color == 0x00FF88))
{
Send, {E}
shooting := True
}
else
If ((shooting == True) && (color != 0x00FF88))
shooting := False
{
var++
goto Process
}
Return
Numpad2::
{
ExitApp
}