I'm sure I'm just bad at searching, but I can't find an answer to this seemingly easy question...
I want to use a window.KeyboardMaestro.Trigger
action in a floating HTML prompt to run another macro. But that macro is in a different group. What's the syntax for doing that? I tried ...Trigger("groupName:macroName"
, but that didn't work.
Is this possible?
-rob.
The answer is in
action:Custom HTML Prompt [Keyboard Maestro Wiki]
You can use this
window.KeyboardMaestro.Trigger( macro, value )
no need to use group name, just ensure that macro name is unique.
window.KeyboardMaestro.Trigger("My Unique Macro name", "hello"); and the word "hello" can be extracted using %TriggerValue% in the macro
That's the problem, the macro name isn't unique, as I have multiple versions of this macro on my Mac right now. But that's OK, I solved it by moving it into the same group :).
thanks!
-rob.
Instead of referring to a macro by its (potentially ambiguous) name, you can instead use its UUID (Universally Unique ID).
Right click on the macro or open the Edit menu, then:
Copy as → Copy as UUID
1 Like
Thanks! Wasn't sure I could use a UUID there.
-rob.