Guest Yeah Posted August 17, 2004 Posted August 17, 2004 How I can set a HotKey to pause / resume a script? Thanks
Developers Jos Posted August 17, 2004 Developers Posted August 17, 2004 How I can set a HotKey to pause / resume a script? Thanks <{POST_SNAPBACK}>Did you have a look at the helpfile ? it has an example for HotKeyset that just does what you are asking... 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.
Josbe Posted August 17, 2004 Posted August 17, 2004 Yeah, hereAnother single example, too...HotKeySet("{PAUSE}", "_Pause"); PAUSE HotKeySet("+{PAUSE}", "_UnPause"); SHIFT + PAUSE ProgressOn( "Loop", "Progressing..", "", -1, -1, 16) For $y=1 to 100 $pauSet= $pauSet ProgressSet( $y, $y & '%', $pauSet) Sleep(500) Next Exit Func _Pause() Global $pauSet= 1 While $pauSet WEnd EndFunc Func _UnPause() Global $pauSet= 0 EndFunc AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Guest Malizia Posted August 19, 2004 Posted August 19, 2004 I too have been attempting to use a pause/resume hotkey in my script. The script (which just outputs some text based on certain events on the screen) works fine in Notepad, and the hotkey pause/resumes as it should. However, when I run the computer game Final Fantasy XI (which I designed the script for) the hotkeys do not work. I have attempted to use Ctrl-x, the Pause key, and the End key as hotkeys. All work outside the game, none work inside the game. I'm guessing FFXI somehow disables the HotKeySet function from being activated, so is there a way around this? Except for the pause/resume hotkey thing, the script works perfectly in game. Additionally, a friend of mine who has been attempting a similar thing mentioned that his GUI automation program has a pause/resume hotkey built into the program, instead of having to be written into a script. Does AutoIt have such a pause/resume hotkey built in? Thanks, Malizia
Guest mjkroll Posted August 19, 2004 Posted August 19, 2004 Creative use of KeyLockState() [see http://www.autoitscript.com/forum/index.ph...3739&hl=numlock] will solve your problem. Good luck!
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