CyberSlug Posted February 17, 2004 Share Posted February 17, 2004 (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-registerEndFuncJust wonderingEdit: 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 February 17, 2004 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! 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