Macro Groups can be configured to be activated in various ways (such as from the Status Menu or a hot key). The *Activate Macro Group* action lets you control the activation explicitly (such as from another Macro Group palette).
You can configure the action in similar ways to the Macro Group configuration, specifically:
* Activate fo
The //[[action:Show Global Macro Palette|Show Global Macro Palette]]// action shows the Global Macro Palette.
The //[[action:Hide Global Macro Palette|Hide Global Macro Palette]]// hides it.
The //[[acti
====== Trigger Macro by Name Action ======
The //Trigger Macro by Name// action displays a Spotlight-like window, where you trigger execution of a Macro by searching for it, and then selecting it.
{{ action:km-7.2-trigger-macro-by-name-window.png?nolink |}}
Like the Mac Spotl
The Set Macro or Group Enable action allows you to selectively enable, disable or toggle macros or groups... able.
*Disable.
*Toggle.
Select the specific macro or group from the second hierarchical pop-up.
==... Also =====
=== Actions ===
* [[action:Activate Macro Group|Activate Macro Group]]
* [[action:Activate Macro Group for One Action|Activate Macro Group for One
ction will fail (v9.0+), potentially aborting the macro.
Keyboard Maestro sets the environment variables... bles that contain information about the executing macro. These include:
^environment variable^meaning^
|... MINFO_MacroName`|The name of the parent executing macro|
|`KMINFO_MacroUUID`|The UUID of the parent executing macro|
|`KMINFO_MacroGroupName`|The name of the macro g
you to prevent (a) multiple triggers of the same macro from executing simultaneously, and/or (b) multipl... usly.
===== Background =====
When you trigger a macro, the Keyboard Maestro Engine takes a copy of it and starts executing it. If you trigger another macro before the first one finishes, that will start ex... y, with actions from each independently triggered macro running at the same time.
Most macros are trigge
====== Execute a Macro Action ======
The *Execute Macro* action allows you to execute another macro like a subroutine, though without any ability to pass parame... ables (if you want to pass parameters in to a sub-macro or receive a result from it, consider making it a
====== Macro Debugger ======
Keyboard Maestro includes a built-in macro debugger which you can turn on by choosing Start ... actions.
{{ manual:macrodebugger.png?nolink&683 |Macro Debugger}}
===== Debugger Actions =====
* Debu... bugger New Macros Run.
* Debugger Breakpoint This Macro.
* Debugger Breakpoint All Other Macros.
* Debugg
ne* action (v10.0+) allows you to execute another macro like a [[/Subroutines|subroutine]], optionally pa... ers in and receiving a result in return. The sub-macro will be executed, and when it is finished, execut... l continue on from after this action.
The target macro defines the parameters via the [[trigger:Subrouti... ine]] trigger, but if you want to execute another macro without parameters or a result you can use the [[
n:record-button.png?nolink|}}
====== Record Quick Macro ======
[Recording](/manual/Recording) allows Key... ing) page in the User Manual.
The //Record Quick Macro// action is a variant of this which you can activ... *[OPT] + [F1]** when you are ready to execute the macro. Be sure your cursor is located at the starting ... if you try to use Quick Recording while editing a macro, as soon as you change your macro (and a short ti
communicate the basic purpose, or the name of the macro, to the user.
It may contain any of the Keyboard... n prefix in all of the variables used by the same macro. This clearly identifies the macro that uses these variables, and groups them together in the Variables... ant to expose this prefix to the user running the macro.
So, you can hide the prefix if the variable nam
The //Mark Macro action// allows you to “mark” a macro. A marked macro shows up in the status menu with a tick mark next to it, or in a toolbar with a tick on... t. This can be useful to convey the state of the macro or whatever it controls.
The action allows you t
run //Asynchronously// (the script runs while the macro immediately continues on to the next //Action//.)... * Since this variable is not needed after the macro finishes, a //Local// variable is used.
* Whi... ction will fail (v9.0+), potentially aborting the macro.
===== Scripting =====
For the latest update on... d the actual error. So, you may find this custom macro useful:\\
[MACRO: Display Last KM Macro Error V
|Execute a Subroutine]] action that executed this macro (directly or indirectly). The returned value will... .
If no Execute a Subroutine action executed the macro, then the result will be returned to an AppleScri... ool|Command Line Tool]] (v11.0+), or the `Execute Macro` Shortcut (v11.0+).
ExtraSearchTags: *Run Macro*, *Run a Macro*, *Call Macro*, *Sub Macro*
===== See A