Cuervo Posted January 5, 2008 Posted January 5, 2008 I'm trying to set a hotkey to pause a script. What I have right now, but it's not pausing the script. Global $Paused HotKeySet("{F12}", "TogglePause") Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc -Tim
The Ape Posted January 5, 2008 Posted January 5, 2008 Maybe if we could see what you are trying to pause... we could help. FixJaw.comTriad-Art.com
Cuervo Posted January 5, 2008 Author Posted January 5, 2008 (edited) Ok, here you go. Thanks for looking NVM, I got it to work. Doh! Edited January 5, 2008 by Cuervo -Tim
markusbab Posted January 5, 2008 Posted January 5, 2008 F12 It is also reserved by Windows, according to its API.
DirtDBaK Posted January 5, 2008 Posted January 5, 2008 Well F12 is a hotkey set with IsPressed() in my media player no problems there. [center][/center]
GEOSoft Posted January 5, 2008 Posted January 5, 2008 Well F12 is a hotkey set with IsPressed() in my media player no problems there.I think you can use it on some versions of Windows and not others. There is mention of it being reserved in the help file too. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
DirtDBaK Posted January 5, 2008 Posted January 5, 2008 Oh well XP Pro it works fine... but that makes sence.. [center][/center]
GEOSoft Posted January 5, 2008 Posted January 5, 2008 Oh well XP Pro it works fine... but that makes sence..I just looked it up and it appears to be reserved only when using certain communication protocalls. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
DirtDBaK Posted January 5, 2008 Posted January 5, 2008 Ok well that means I need to change my hotkeys so my media player doesn't interfere with them. Thanks! [center][/center]
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