onedayillpay Posted February 10, 2007 Share Posted February 10, 2007 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.... Link to comment Share on other sites More sharing options...
nobbe Posted February 10, 2007 Share Posted February 10, 2007 hi tried CTRL-BREAK to stop it? nob Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2007 Share Posted February 10, 2007 Any Code??? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
onedayillpay Posted February 10, 2007 Author Share Posted February 10, 2007 hi tried CTRL-BREAK to stop it? nobctrl-breakwhat is break? and will this stop any script... Link to comment Share on other sites More sharing options...
BALA Posted February 10, 2007 Share Posted February 10, 2007 (edited) 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 February 10, 2007 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 More sharing options...
onedayillpay Posted February 10, 2007 Author Share Posted February 10, 2007 (edited) 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 February 10, 2007 by onedayillpay Link to comment Share on other sites More sharing options...
Shevilie Posted February 10, 2007 Share Posted February 10, 2007 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 Link to comment Share on other sites More sharing options...
xcal Posted February 10, 2007 Share Posted February 10, 2007 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 Did you by chance actually try that? ExitLoop needs to be within a loop. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
BALA Posted February 10, 2007 Share Posted February 10, 2007 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. 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 More sharing options...
onedayillpay Posted February 11, 2007 Author Share Posted February 11, 2007 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 More sharing options...
Shevilie Posted February 11, 2007 Share Posted February 11, 2007 My bad 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now