Use Double-Press of Control Key as Trigger

Good morning everyone,

I’m trying to set up a macro in KM to continuously refresh the dictation time-out period in macOS, allowing for a seamless continuous speech-to-text experience. In the past, I’ve used a double-tap of the Control key as the MacOS System Level hotkey trigger and have grown very accustomed to it.

I’m looking for a way to replicate this behavior in KM, specifically, using the double-press of the Control key to trigger the macro, and furthermore, a single press subsequently that triggers the macro to stop executing. If anyone knows of an overlooked, lesser-known, or workaround method to achieve this, I’d greatly appreciate your insights. I want to continue using the Control key alone as a trigger for this function/feature to maintain my workflow.

Thanks in advance for any help!

Because you want to press only the Control key you'll need to use the "USB Device Key" trigger. Note that, unlike a Hot Key trigger, it doesn't get "swallowed" by the KM Engine and continues on to the frontmost application, so watch out for side effects...

That said, this should get you started. If you aren't using a Magic Keyboard you'll need to reset the trigger keys:

Double Press Start, Single Press Stop.kmmacros (7.4 KB)

Image

3 Likes