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 [2016/03/18 01:28] – peternlewis | trigger:Hot_Key [2025/11/18 04:13] (current) – [When] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Hot Key Trigger ====== | ||
| + | |||
| 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 |
| - | Hot Keys will override application menu Command Keys or any other keys typically used in applications, | + | You can configure |
| - | So keep in mind that regardless of whether you trigger the macro on hot key pressed, down, released or tapped, the key is swallowed by the system and cannot be used for its normal purposes. | + | 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+). |
| + | |||
| + | (!) Keep in mind that regardless of whether you trigger the macro on hot key pressed, down, released or tapped, the key is swallowed by the system and cannot be used for its normal purposes. | ||
| + | |||
| + | (!) Note that whether or not a key typed by Keyboard Maestro itself will trigger a hot key (and thus be swallowed and execute a macro) or not (and thus go through to the application) is not defined - either behaviour may happen and which behaviour happens will vary depending on many unpredictable factors though Keyboard Maestro will try to ensure no macro is triggered in response to its own typing. If you wish to trigger a macro based on a keystroke, you can use the [[action: | ||
| + | |||
| + | ^ 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: | ||
| - | Hot_Keys suffer from the drawback that you need to remember a cryptic keystroke. | + | ===== Knowing Which Key Is Pressed ===== |
| - | To further help with this, if multiple macros are executed with the same hot key, the conflicting macros are displayed in a palette allowing | + | You can use the [[token: |
| - | A note on terminology: | + | ===== Complexity ===== |
| + | |||
| + | 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 [[/ | ||
| + | |||
| + | ===== 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 ===== | ||
| + | |||
| + | === Triggers === | ||
| + | |||
| + | * [USB Device Key](https:// | ||
| + | * [Typed String](https:// | ||
| + | * [[: | ||
| + | |||
| + | === Actions === | ||
| + | |||
| + | * [Type a Keystroke](https:// | ||
| + | * [Insert Text by Typing](https:// | ||
| + | * [[: | ||
| + | |||
| + | === Tokens === | ||
| + | |||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[: | ||
| + | |||
| + | === Forum === | ||
| + | |||
| + | * [A Type a Key action can trigger another macro](https:// | ||
| + | |||
trigger/Hot_Key.1458264520.txt.gz · Last modified: by peternlewis
