tezari Posted August 6, 2016 Share Posted August 6, 2016 How can i add a limited amount of time between a HotKeyset key has been pressed till another can be pressed? Is there a way to stablish a time between two key strokes? Thanks! Link to comment Share on other sites More sharing options...
l3ill Posted August 6, 2016 Share Posted August 6, 2016 (edited) Add a BlockInput into the function that the HKS is calling... Edited August 6, 2016 by l3ill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
EmilyLove Posted August 7, 2016 Share Posted August 7, 2016 What I would do in this case is load and unload all my hotkeys with a function. When any hotkey is pressed, I would run the function to unload the hotkeys. If the function the hotkey is calling just needs to finish, then load the hotkeys again at the end of the function. If the function that is called hasn't finished yet and you want to enable the hotkeys again, then set an adlibregister to reactivate the hotkeys. The load function will also need to have an adlibunregister so you aren't constantly reactivating keys. https://www.autoitscript.com/autoit3/docs/functions/AdlibRegister.htm https://www.autoitscript.com/autoit3/docs/functions/AdlibUnRegister.htm 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