Edit: If you think HotkeyNet should be changed to make it friendlier to other programs, please tell me how. I'm open to suggestions. As for the current build:
The only time HotkeyNet interferes with another program's injected keystrokes is when the user has defined those keystrokes as the trigger of a hotkey and the hotkey definition calls for the trigger to be swallowed.
In other words, HotkeyNet only does it when the user explicitly tells it to do it.
On the output side, HotkeyNet signs its own injections partly as a convenience to me but also as a convenience to other programmers.
Here are some details:
-- HotkeyNet gets its keyboard input from a low level keyboard hook.
-- The hook proc decides whether a keyboard event is the trigger of a defined HotkeyNet hotkey and if so, depending on whether the definition calls for the trigger to be swallowed, the hook proc swallows the event by returning a non-zero value to the operating system.
-- At all other times the hook proc calls the next hook in the chain without altering anything.
-- HotkeyNet accepts both physical keystrokes and those injected by other programs as triggers.
-- HotkeyNet signs its own SendWin injections with a constant -- I forget the number but you can see it in the debugger or I'll look it up if you want -- so you can easily handle HotkeyNet's injections as a special case if you want to do that.
Connect With Us