This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
action:Trigger_Macro_by_Name [2017/03/14 04:48] peternlewis |
action:Trigger_Macro_by_Name [2017/09/07 05:38] peternlewis |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Trigger Macro by Name Action ====== | ====== Trigger Macro by Name Action ====== | ||
- | The //**Trigger Macro by Name**// [[:Actions|Action]] display a Spotlight-like window, where you trigger execution of a Macro by searching for it, and then selecting it. | + | The //Trigger Macro by Name// action display 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|}} | {{:action:km-7.2-trigger-macro-by-name-window.png?nolink|}} | ||
Line 9: | Line 9: | ||
===== How To Use ===== | ===== How To Use ===== | ||
+ | |||
- Create the Trigger by Name Macro | - Create the Trigger by Name Macro | ||
- Create a new macro, in the Global Macro Group (so it will be available in all apps) | - Create a new macro, in the Global Macro Group (so it will be available in all apps) | ||
- Assign it a trigger (one suggestion is <kbd>⌘</kbd><kbd>⌥</kbd><kbd>⌃</kbd><kbd>T</kbd>) | - Assign it a trigger (one suggestion is <kbd>⌘</kbd><kbd>⌥</kbd><kbd>⌃</kbd><kbd>T</kbd>) | ||
- | - Insert the //**Trigger Macro by Name**// [[:Actions|Action]]. | + | - Insert the //Trigger Macro by Name// action. |
+ | - Optionally configure the default search. | ||
+ | - Optionally allow inactive or disabled macros. | ||
+ | - Optionally restrict it to specified macros or macro groups. | ||
- When you are ready to Trigger a Macro | - When you are ready to Trigger a Macro | ||
- Like using any Macro, make sure you have any required app frontmost. | - Like using any Macro, make sure you have any required app frontmost. | ||
Line 31: | Line 35: | ||
| | ||
would filter the list of Macros to those whose: | would filter the list of Macros to those whose: | ||
+ | |||
* Active application is "Safari" | * Active application is "Safari" | ||
* Macro name contains "copy" | * Macro name contains "copy" | ||
Line 38: | Line 43: | ||
For the complete list of available filters, see [[manual:Search_Strings|Search Strings]] | For the complete list of available filters, see [[manual:Search_Strings|Search Strings]] | ||
- | ===== See Also ===== | + | ===== Passing Parameters ===== |
- | ---- | + | You can pass parameters (v8+) to the macro via the [[token:TriggerValue|%TriggerValue%]] token by adding `//` and then the parameter to your search string. The `//` and anything after that will be ignored in the search. |
+ | |||
+ | ===== See Also ===== | ||
=== Actions === | === Actions === | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||
- | |||
- | |||
- | === Triggers === | ||
- | |||
- | * [[:Triggers|See all Triggers]] | ||
- | |||
- | ---- | ||
==== Topics ==== | ==== Topics ==== | ||
- | * [[:manual:Windows#Macro Editor Window|Macro Editor Window]] | ||
* [[:manual:Search Strings|Search Strings]] | * [[:manual:Search Strings|Search Strings]] | ||
- | * [[:Frequently Asked Questions|FAQ]] | ||
- | |||
- | ---- | ||
==== Forum ==== | ==== Forum ==== | ||
Line 66: | Line 62: | ||
- [[https://forum.keyboardmaestro.com/search?q=Trigger%20Macro%20by%20Name%20Action|Keyboard Maestro Forum topics about Trigger Macro by Name Action]] | - [[https://forum.keyboardmaestro.com/search?q=Trigger%20Macro%20by%20Name%20Action|Keyboard Maestro Forum topics about Trigger Macro by Name Action]] | ||
- |