toad
toad

Reputation: 23

Delay pixel search

f1::    
enterPixelSearch,x1,y1,1,100,200,100,0x000000,2,Fast RGB 
    if(ErrorLevel == 0)
    {
        sleep, 20
        send
    } 

How do I add a sleep to the enterpixel search itself? I want to delay the function after pressing the hotkey

Upvotes: 0

Views: 96

Answers (1)

Spyre
Spyre

Reputation: 2344

Something like this?:

f1::
Sleep 1000
enterPixelSearch,x1,y1,1,100,200,100,0x000000,2,Fast RGB if(ErrorLevel == 0) { sleep, 20 send }
return

Upvotes: 1

Related Questions