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 Set Macro or Group Enable action allows you to selectively enable, disable or toggle macros or groups of macros.
{{:action:setmacroorgroupenable.png|}}
Select from the pop-up to:
*Enable.
*Disable.
*Toggle.
you to prevent (a) multiple triggers of the same macro from executing simultaneously, and/or (b) multiple macros from executing simultaneously.
===== 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
====== 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 //[[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
====== Macro Debugger ======
Keyboard Maestro includes a built-in macro debugger which you can turn on by choosing Start ... g one of the various Debugger actions.
{{ manual:macrodebugger.png?nolink&683 |Macro Debugger}}
===== Debugger Actions =====
* Debugger Start.
* Debugger Fi
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^
|`KMINFO_MacroName`|The name of the parent executing macro|
|`KMINFO_MacroUUID`|The UUID of the parent executing macro|
====== 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
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... thout launching Keyboard Maestro//. It, like all Macros, can be triggered by a hotkey. You can quickly ... *[OPT] + [F1]** when you are ready to execute the macro. Be sure your cursor is located at the starting
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... ion.
You can only use this action to execute sub-macros that include the [[trigger:Subroutine|Subroutine
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
oard by triggering the Clipboard History Switcher macro. Clipboard History Switcher will present you with... ro creates an Activate Clipboard History Switcher macro in the “Switcher Group” Macro Group, triggered by Command-Control-Shift-V. You can disable the Macros by selecting them in the Macros window pane and
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
====== Show Palette of Macros ======
The //Show Palette of Macros// action (v8+) allows you to display a palette of selected macros and select which one to execute.
{{ show-palette-of-macros-action.png?nolink&512x161 | Show Palette of Macr
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