Sign in to follow this  
Followers 0
Vastyrik

Two sleep at same time

2 posts in this topic

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0