Sign in to follow this  
Followers 0
CyberSlug

Hotkeyset Question

1 post in this topic

#1 ·  Posted (edited)

I notice that if you set ScrollLock as a hotkey, then AutoIt "captures" it but the scroll lock state is also toggled. Other hotkeys are completely "captured".

Could each type of behavior be allowed?

1) e.g., when NumLock is a hotkey, pressing NumLock is captured by AutoIt and the numlock state/LED does not change. A workaround is to Send("{NumLock toggle}") inside of the hotkey function.

2) e.g., when Esc is a hotkey, pressing Esc is captured but the Escape key is also passed on to the active application. The current workaround is this:

HotKeySet("{Esc}", "foo")

Func foo()

HotKeySet("{Esc}") ;unregister to prevent infinite recursion

Send("{Esc}") ;send

HotKeySet("{Esc}", "foo") ;re-register

EndFunc

Just wondering

Edit: I've looked at the implementation and the Windows API and realize my request might not be possible at this time. (But I'm no expert)

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites



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
Sign in to follow this  
Followers 0