Jump to content

Two sleep at same time


Recommended Posts

Hello

While 1
Sleep(20000)
Send("{F1}")
WEnd

While 1
    $coord = PixelSearch(0,20,1024,768,0x18555A)    
    If Not @error Then
        MouseClick("left",$coord[0],$coord[1])
        Sleep(15000)
    EndIf
WEnd

I want 2 whiles be executed at same time but there is only the first block that is executed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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