Jump to content
Sign in to follow this  
Xav

How to Exit a While..

Recommended Posts

Xav

If it found the color it's stoping the While To continu the script but it dont stop the while and restart if arealy found

Send("{TAB}")
Send("w")
Sleep(400)
Send("j")
MouseClick("RIGHT")
Sleep(700)
Send("k")
MouseClick("RIGHT")
Sleep(800)
Send("w")
Sleep(400)
Send("{f6}")
MouseClick("RIGHT")
Sleep(1000)
Send("{ALTDOWN}")
Send("{f1}")
MouseClick("right" ,657, 66 ,1 ,0)
Sleep(390)

While 1
    $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 )

    If @error Then
        MouseClick("right" ,798, 103 ,1 ,0)
        Sleep(390)
    EndIf
Wend



Sleep(2000)
Send("{AltUp}")
Sleep(375)
Send("{f9}")
MouseClick("Right")
Edited by Xav

Share this post


Link to post
Share on other sites
Xav

Duh i press edit damn

Send("{TAB}")
Send("w")
Sleep(400)
Send("j")
MouseClick("RIGHT")
Sleep(700)
Send("k")
MouseClick("RIGHT")
Sleep(800)
Send("w")
Sleep(400)
Send("{f6}")
MouseClick("RIGHT")
Sleep(1000)
Send("{ALTDOWN}")
Send("{f1}")
MouseClick("right" ,657, 66 ,1 ,0)
Sleep(390)

While 1
    $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 )

    If @error Then
        MouseClick("right" ,798, 103 ,1 ,0)
        Sleep(390)
    EndIf
Wend



Sleep(2000)
Send("{AltUp}")
Sleep(375)
Send("{f9}")
MouseClick("Right")
Edited by Xav

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  

×