trigger:Hot_Key
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| trigger:Hot_Key [2019/07/01 05:32] – peternlewis | trigger:Hot_Key [2025/11/18 04:13] (current) – [When] peternlewis | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The *Hot Key trigger* is perhaps the most common and most basic of all triggers. | The *Hot Key trigger* is perhaps the most common and most basic of all triggers. | ||
| + | |||
| + | ===== The Key ===== | ||
| The key can be a letter, number, symbol or function key, often in combination with one or more modifiers (Shift, Control, Option and/or Command). | The key can be a letter, number, symbol or function key, often in combination with one or more modifiers (Shift, Control, Option and/or Command). | ||
| - | You can type the desired key or key combination in the hot key box, or select a predefined key (holding down any desired modifiers) from the popup menu to its right. Note that there is a relatively prevalent [third party / system bug](http:// | + | You can type the desired key or key combination in the hot key box, or select a predefined key (holding down any desired modifiers) from the popup menu to its right. |
| - | The keystroke may include zero or more of the normal modifiers (Command, Option, Shift, Control), together with another key (such as a letter, number, function key or other keys). | + | The keystroke may include zero or more of the normal modifiers (Command, Option, Shift, Control), together with another key (such as a letter, number, function key or other keys). |
| - | You can configure the hot key trigger to execute the macro when the key is pressed, when it is released, or repeatedly while the key is held down. This allows you to do things like have a macro execute when the key is pressed, and then a second macro execute when the key is released, for example to toggle a setting on and then off again. | + | ===== When ===== |
| - | You can configure the hot key trigger to execute when the key is tapped (press and released quickly) each time, the first tap, double tapped, triple tapped, or quadruple tapped | + | You can configure the hot key trigger to execute |
| - | You can use the [[token: | + | You can configure |
| - | Hot Keys will override application menu Command Keys or any other keys typically used in applications, | + | You can configure the hot key trigger to execute when the key is tapped (press and released quickly) only on the first tap, or the second tap, or the third tap, or the fourth tap (v11.0+). |
| - | (!) Note that whether | + | (!) Keep in mind that regardless of whether |
| - | So keep in mind that regardless of whether | + | (!) Note that whether |
| + | |||
| + | ^ Selection | ||
| + | | is pressed | ||
| + | | is long pressed | ||
| + | | is down | when the key is pressed and periodically while it remains down | | ||
| + | | is released | ||
| + | | is tapped | ||
| + | | is tapped once | when the key is tapped and has not been tapped recently | ||
| + | | is tapped only once | a short while after the key has been tapped if it has not been pressed again | | ||
| + | | is tapped twice | when the key is tapped twice and has not been tapped three or more times | | ||
| + | | is tapped only twice | a short while after the key has been tapped twice if it has not been pressed again | | ||
| + | | is tapped 3 times | as twice, but 3 times | | ||
| + | | is tapped only 3 times | as only twice, but 3 times | | ||
| + | | is tapped 4 times | as twice, but 4 times | | ||
| + | | is tapped only 4 times | as only twice, but 4 times | | ||
| + | |||
| + | So for example if you tap the key three times in quick succession, these triggers would happen: | ||
| + | |||
| + | * is pressed | ||
| + | * is released, is tapped, and is tapped once. | ||
| + | * is pressed | ||
| + | * is released, is tapped, and is tapped twice. | ||
| + | * is pressed | ||
| + | * is released, is tapped, and is tapped 3 times. | ||
| Modifiers alone (eg just Control) cannot be used as a hot key, although you can use the [[trigger: | Modifiers alone (eg just Control) cannot be used as a hot key, although you can use the [[trigger: | ||
| + | |||
| + | ===== Knowing Which Key Is Pressed ===== | ||
| + | |||
| + | You can use the [[token: | ||
| + | |||
| + | ===== Complexity ===== | ||
| Hot Keys suffer from the drawback that you need to remember a cryptic keystroke. | Hot Keys suffer from the drawback that you need to remember a cryptic keystroke. | ||
| - | To further help with this, if multiple macros are executed with the same hot key, the conflicting macros are displayed in a palette | + | To further help with this, if multiple macros are executed with the same hot key, the conflicting macros are displayed in a [[/ |
| - | A note on terminology: | + | ===== The Fn Key ===== |
| + | |||
| + | The Fn key is not a modifier and cannot be used as such. It retains its normal purpose in toggling the function keys role, and so it might be part of a hot key, but only if the function keys normally have their hardware (eg brightness up) role and then Fn key makes them into a function key suitable for use in a hot key trigger. Hardware keys (like brightness up) cannot be used as a hot key, but functions keys can). | ||
| + | |||
| + | ===== Terminology ===== | ||
| * Hot Key - system wide hot key API (swallows keys and overrides other behaviours, fires in every application that registers it). | * Hot Key - system wide hot key API (swallows keys and overrides other behaviours, fires in every application that registers it). | ||
| * Command Key (or Menu Command Keys or sometimes Menu Shortcut) - menu keys for selecting a menu, usually but not always with the Command key modifier, generally application specific (except for the shared menus like the Services, but they are still application specific, but the menu is duplicated in each application like the Edit menu typically is). | * Command Key (or Menu Command Keys or sometimes Menu Shortcut) - menu keys for selecting a menu, usually but not always with the Command key modifier, generally application specific (except for the shared menus like the Services, but they are still application specific, but the menu is duplicated in each application like the Edit menu typically is). | ||
| * Keyboard Shortcut - could be either (hence the use in the System Preferences, | * Keyboard Shortcut - could be either (hence the use in the System Preferences, | ||
| + | |||
| + | Hot Keys will override application menu Command Keys or any other keys typically used in applications, | ||
| ===== See Also ===== | ===== See Also ===== | ||
| - | ---- | + | === Triggers === |
| - | + | ||
| - | === Triggers === | + | |
| * [USB Device Key](https:// | * [USB Device Key](https:// | ||
| * [Typed String](https:// | * [Typed String](https:// | ||
| + | * [[: | ||
| === Actions === | === Actions === | ||
| Line 46: | Line 83: | ||
| * [Type a Keystroke](https:// | * [Type a Keystroke](https:// | ||
| * [Insert Text by Typing](https:// | * [Insert Text by Typing](https:// | ||
| + | * [[: | ||
| === Tokens === | === Tokens === | ||
| * [[token: | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[: | ||
| - | ---- | + | === Forum === |
| - | + | ||
| - | ==== Forum ==== | + | |
| * [A Type a Key action can trigger another macro](https:// | * [A Type a Key action can trigger another macro](https:// | ||
trigger/Hot_Key.1561959152.txt.gz · Last modified: by peternlewis
