Jump to content

Recommended Posts

Posted

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!

Posted

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

 

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...