Hello,
In my scripts. I'm dynamically registering the hotkeys with the Hotkey function.
The documentation is clear about the fact that there can be only one Action for a KeyName that is managed by Hotkey function.
However, I need to use multiple actions (for one KeyName).
Is there a recommended approach to this or my case described below?
My need for this is that I want separate and independent actions for the same hotkey.
For example:
The first library that I'm using is using CapsLock to implement window switching with one key. Specifically: pressing CapsLock holds down LAlt and presses Tab; subsequent presses of CapsLock press Tab; this ends (and releases LAlt) after timeout or by pressing another key. So this library is registering a hotkey for all keys on the keyboard to detect the "another key" press. At the end, the hotkeys are turned off (by Hotkey function.)
My second library is hadling key presses as well to basically rewrite key to%omething else (think of swapping two keys on the keyboard).
The problem is that when the first library finishes, it turns off all the hotkeys, therefore the hotkeys that the second library relies on are also disabled.
Thank you for the help.
Multiple Hotkey actions for the same hotkey
Re: Multiple Hotkey actions for the same hotkey
@mikeyww Thank you. I wasn't aware of InputHook. I was able to implement my use case with it.