I m trying to put a ramdom delay before to send, instead of the sleep function, without succes.
Can someone help me?
Code: Select all
z::
Loop
{
PixelSearch, Px, Py, 712, 746, 908, 896, 0xB14927, 0, Fast RGB
if (ErrorLevel=0)
{
send, $
Sleep, 200
}
PixelSearch, Px, Py, 1114, 865, 1167, 944, 0xA29260, 0, Fast RGB
if (ErrorLevel=0)
{
send, a
Sleep, 200
}
}
until !GetKeyState(A_ThisHotkey,"P")
return