Listening To Hotkeys
Including hotkey-listening logic at runtime
To listen to key presses, use the HotkeyPressed
event:
Unlike with the standard KeyDown
and KeyUp
events, here only the registered hotkeys will be detected.
If you'd like to get the details of the active application where a hotkey was pressed, use the SourceApplication
argument property:
As a special feature (still in Beta
though), if you'd like to get any text that may have been selected when a hotkey added was pressed, use Hotkey Listener's GetSelection()
method:
Last updated