Regarding "Press and Hold Modifiers" the KM manual says.
"Keys that are pressed remain pressed only as long as the macro is running."
Is this not the case if I select "is down" and "press and hold"?
Regarding "Press and Hold Modifiers" the KM manual says.
"Keys that are pressed remain pressed only as long as the macro is running."
Is this not the case if I select "is down" and "press and hold"?
"Is down" is a trigger and will press and hold the modifiers briefly. Then the macro ends and they release... is my understanding.
If you want the modifiers to be pressed as long as you hold the trigger hotkey, you can use Pause Until the hotkey is up and then release the modifiers.
Take this with a pinch of salt as I've had a couple of .
Hi @noisneil, yes, exactly that. But I don't know how to do that. Would you be so kind to post me something?
Edit: I need this to display something in the touch bar that is only visible when these modifiers are down. Unfortunately BTT can not do that
I think @noisneil is exactly right and I would guess you implement it something like this:
NB - use "is pressed" rather than "is down" for the "5" trigger otherwise the Macro will fire over and over again. What you want is the macro to fire once and pause until the "5" key is up.
Thank you @Zabobon
It almost works. When I press and hold "5", I see what I want to see on the Touch Bar for a moment, but it disappears right away.
It should not disappear until I release "5". Mmmm?
For testing purposes, instead of the "pause until 5 is up" you could try "pause for 10 seconds" and see if that keeps those modifiers pressed until the Macro ends.
You have "type" instead of "hold" in your Action
That Action should be "press and hold" as you had originally. Have another look at my original screenshot.
Ah, yes, sorry, that's how it works. I see what I want to see for 10 seconds.
But I would prefer just as long as "5" is pressed.
Yes. It will work that way. As long as the "5" key is pressed down, those modifiers will be held. I only mentioned trying the timed pause when you said it wasn't working. But it wasn't working because you had that modifier key Action as "type" instead of "press and hold"