Sign in to follow this  
Followers 0
simonwar

Stop a looping script

4 posts in this topic

How do you stop a looping script that has the mouse running about to.

Sreamed at my PC hitting everything damn thing, Esc Ctrl-Esc Ctrl-Alt-Esc Aaaaaarrggghhhhh!

How do I simply put in an exit command, for example if I hit Esc regardless it will pause the script.

Thanks, Simon.

Share this post


Link to post
Share on other sites



How do you stop a looping script that has the mouse running about to.

Sreamed at my PC hitting everything damn thing, Esc Ctrl-Esc Ctrl-Alt-Esc Aaaaaarrggghhhhh!

How do I simply put in an exit command, for example if I hit Esc regardless it will pause the script.

Thanks, Simon.

Yeah you should always put an exit func in ur script

Func ExitApp()

Exit

EndFunc

HotKeySet("{INS}", "ExitApp")

This will close the sricpt


Share this post


Link to post
Share on other sites

Look at the help file HotKeySet() function. It has an example of how to pause a script.


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

However if you don't do that (and you have more then one user) you can press Windows + L and then close the autoit process from the other user... I've had to do that a few times when I was in a hurry to make a mouse loop...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

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  
Followers 0