Note : I have 1920X1080 screen resolution with . This works by using pixel location. That means Screen Resolution is very important for it to work !
Keys :
F1 = Run Script
ALT + x = Quit
Code: Select all
IfWinExist, CS:GO
{
IfWinActive, CS:GO
{
*F1::
AUTORELOAD := !AUTORELOAD
LOOP:
PixelSearch, Px, Py, 1881, 1053, 1881, 1053, 0xFF0000, 0, FAST, RGB)
If (ErrorLevel == 1)
{
sleep 5
goto, LOOP
}
else
{send, r
sleep 5
goto, LOOP
}
return
}
return
}
return
^x::ExitApp