Supplemental update for Stream Deck users:
Armed with insight from @peternlewis , I've managed to refine this somewhat.
KM Link - Multipress Macros.kmmacros (118.2 KB)
Stream Deck TEST Profile (1.9 KB)
Download the macros and profile above and ensure that KM Link - Multipress Trigger is selected in KM Link's macro dropdown.
The parameter field contains an arbitrary term to identify the subroutine to be triggered. In this example, I've used Test 1.
KM Link can pass further parameter values to KM, separated by comma delimiters. Here Iā¦
For the macros below...
Set your triggers. With the exception of the MIDI version, in each case, you'll need to set the same trigger for both press and release.
Pay attention to any green actions (inside purple groups) and replace the red actions with whatever you want the macro to do.
Multi-Press Templates.kmmacros (274.6 KB)
Screenshots:
Hotkey / USB Key
Single/double/triple tap and long press template.
MIDI
Single/double/triple tap and long press template.
MIDI - Detect Release
Momentarily watches for MIDI release triggers. Any MIDI multi-press macros you create from the above template will reference this single detection macro; there's no need to duplicate it.
Repeat (Hotkey / USB Key)
Repeats an action until the trigger is released, at which time another action can be triggered.
Repeat (Hotkey / USB Key) - Speed Up
Repeats an action until the trigger is released, at which time another action can be triggered. The speed at which the first action repeats increases the longer the key is held.
Thanks to @DanThomas for his awesome multi-press macro, without which the first two wouldn't exist.
14 Likes
_jims
May 13, 2023, 2:07pm
#4
@noisneil , these a really slick. Thanks to @DanThomas and you for sharing these techniques!
1 Like
NaOH
May 13, 2023, 9:26pm
#5
Just for reference, linking this 2014 thread from shortly after Double Tap Control was added.
Keyboard Maestro supports double tapping a modifier key by using the USB Device Key trigger.
Double Tap Control New.kmmacros (2.2 KB)
[image]
Prior to version 7.0, Keyboard Maestro did not support the tapped twice modifier for Hot Key and USB Device Key triggers, but there are two ways you can accomplish this if desired. Either way, you use a USB Device Key trigger to trigger on the press of the control key.
The first way is to keep track of the time the macro last fired, and only perform ā¦
1 Like