pasqui Posted June 11, 2015 Share Posted June 11, 2015 Hi, how to can I have this script in Loop and with a HotKey to stop it? I tried this but the Stop (ctrl+alt+x) doesn't work, it is always in loop: HotKeySet("^!x", "MyExit")While 1mouseClick("left",978,658,8)sleep(400)mouseClick("left",624,571,7)sleep(1000)mouseClick("left",541,578,6)sleep(3)mouseClick("left",571,518,5)sleep(3)mouseClick("left",617,457,4)sleep(3)mouseClick("left",766,381,3)sleep(3)mouseClick("left",692,326,2)sleep(3)mouseClick("left",565,271,1)sleep(1000)WEndFunc MyExit() ExitEndFunc Thank you in advance Link to comment Share on other sites More sharing options...
MikahS Posted June 11, 2015 Share Posted June 11, 2015 (edited) Hi pasqui,Welcome to the AutoIt forum! Is there anyway we can find out what you are automating, maybe there would be a better way of doing this?EDIT: It also works fine for me. Edited June 11, 2015 by MikahS comments Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Developers Jos Posted June 11, 2015 Developers Share Posted June 11, 2015 Work fine here!What program is running in the foreground when you are trying this?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Exit Posted June 11, 2015 Share Posted June 11, 2015 @pasqui Check the @error of the hotkeyset().Usual matter is an already set hotkey by the same or another script.Then the hotkey will have no effect. App: Au3toCmd UDF: _SingleScript() 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