REFERENCE
Hotkey, HotkeyUp |
This page shows old instructions for builds 1 to 128.
For new instructions, go here. |
Many thanks to dcreager for suggesting toggle modifers. |
| Declares the key combination that triggers a hotkey. |
<Hotkey [mod [mod [mod...]]] mainkey>
<HotkeyUp [mod [mod [mod...]]] mainkey> |
— A normal modifier: Shift, LShift, RShift, Ctrl, LCtrl, RCtrl, Alt, LAlt, RAlt.
— Any other key if it's declared first with UseKeyAsModifier.
— A toggle modifier: CapsLockOn, CapsLockOff, ScrollLockOn, ScrollLockOff, NumLockOn, NumLockOff.
|
You can include up to nine modifiers, but keep in mind that most keyboards are limited to five simultaneous keypresses (the sixth won't generate a signal).
You can write modifiers in any order.
Mainkey is any key other than a modifier. You must include one main key. |
| To learn the name of a key, press it while looking at "Last key press" in the upper right corner of HotkeyNet's main window. |
| The difference between Hotkey and HotkeyUp is whether the action occurs when the main key is pressed or released. For example, if you write |
| the action occurs when F3 is pressed. But if you write HotkeyUp instead, like this: |
| the action occurs when F3 is released. |
| Most of the time you should use Hotkey by itself. But to make characters move in games, you need to use Hotkey and HotkeyUp together. For more information, see Movement Keys. |
People often assume that the trigger (the key combination they press to make the hotkey fire) is automatically passed along to whatever program they are using. This is not the case. HotkeyNet doesn't do that because it's a hotkey program, not a key broadcast program. Hotkey programs can do everything broadcast programs do, and much more besides.
|
If you want the trigger to be sent to the active window, you must say so explicitly. HotkeyNet gives you three ways to do this: with PassThrough, with SendFocusWin, or by naming the window like you do when you send to any other window. Here's an example with PassThrough that sends "3" to both the local and remote PCs:
|
<Hotkey 3>
<PassThrough>
<SendPC 192.168.1.103>
<SendWin MyGameWindow>
<Text 3>
|
People also frequently assume that the hotkey trigger must be the same as the hotkey's output. Not so.To illustrate this, here's a hotkey that gets triggered by "3" like the one above but sends "4":
|
<Hotkey 3>
<SendPC local>
<SendWin MyGameWindow>
<Text 4> |
| Here's a simple example without modifiers: |
| Here's an example with one regular modifier: |
| Here's an example with a custom modifier: |
<UseKeyAsModifier Esc>
<Hotkey Esc F1>
|
| Here's an example that fires only when NumLock is on and ScrollLock is off: |
<Hotkey NumLockOn ScrollLockOff F1> |
| Here's a complicated example: |
<UseKeyAsModifier Esc>
<Hotkey LShift LCtrl NumLockOn Esc F1>
|
This page was last revised on September 23, 2008 |
|
|
|
|
|
|