Jump to content

How can i make ahk do a PixelSearch then wait X ammount of time if color not found then loop the script


 Share

Go to solution Solved by Xempy,

Recommended Posts

  • Solution

Here is my code:

 

F1::

Send, {Clcik 961, 615}   ; Clicks any server error
Send, 100
Send, {Click 793, 238}   ; Clicks Server
Sleep, 100
Send, {Click 992, 941}   ; Clicks Join
Sleep, 800
Send, {Click 1226, 938}  ; Clicks Refresh
Sleep, 2500

PixelSearch, Px, Py, 169, 1034, 204, 1053, 0X2B271C, 1, Slow,
if (ErrorLevel = 0) {
MsgBox, Server Joined Successfully
Sleep, 500
ExitApp,
}
Else, Reload

 

Esc::ExitApp


 

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...