Jump to content
Sign in to follow this  
onedayillpay

looped for ever

Recommended Posts

onedayillpay

i dont no how manny times i have ran a script and then put my computer into a uncontroleble loop

is the a hot key that is already built into scite that will shut down all scripts....

Share this post


Link to post
Share on other sites
nobbe

hi

tried CTRL-BREAK to stop it?

nob

Share this post


Link to post
Share on other sites
BrettF
onedayillpay

hi

tried CTRL-BREAK to stop it?

nob

ctrl-break

what is break? and will this stop any script...

Share this post


Link to post
Share on other sites
BALA

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

Share this post


Link to post
Share on other sites
onedayillpay

every time this happens thats what i say to my self... I should have put a hotkeyset($key, "exit")

im on a labtop and ctrl+FN+Break works..... thanks

Edited by onedayillpay

Share this post


Link to post
Share on other sites
Shevilie

Or you can rightclick the icon near your clock and say exit


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
BALA

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

Share this post


Link to post
Share on other sites
onedayillpay

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

Share this post


Link to post
Share on other sites
Shevilie

My bad :whistle: Didnt look at the code :)

Well you should be able to make the usual

HotKeySet("{ESC}","KillMe")

Func KillMe()
   Exit
EndFunc

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

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  

×