Jump to content

looped for ever


Recommended Posts

Why don't you just create a HotKey that will exit the loop:

HotKeySet("{F1}", "Leave") ; Set hotkey

; This function is executed when F1 is pressed
Func Leave()
    ExitLoop ; Exits the loop
EndFunc

While 1
    ;Do whatever here
WEnd
Edited by BALA
[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

Did you by chance actually try that? ExitLoop needs to be within a loop.

No, I guess I should put disclaimers on my posts noting that I usually don't try my scripts. :whistle:

just change ExitLoop to Exit and it should exit the script.

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

i want you all to run this script and then go down to the bottem right cornner and right click the autoit icon and exit the script...

Global $lot
$ligh = "0x0000FE"
$3 = 60
$4 = 40
$5 = 600
$6 = 430
$u = 5
$li = 3
While 1
    $lot = PixelSearch($3, $4, $5, $6, $ligh, $u, $li)
    If IsArray($lot) Then
        MouseClick("Left", $lot[0], $lot[1] + 2, 2, 2)
        sleep(100)
    Else
        $ligh = "0xFF0000"

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