Jump to content

How to Exit a While..


Xav
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
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...