User Tools

Site Tools


action:Execute_a_Macro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
action:Execute_a_Macro [2016/05/05 20:54] – JMTX template + add internal links alainaction:Execute_a_Macro [2022/09/27 05:15] (current) peternlewis
Line 1: Line 1:
-====== Execute Macro From Another Macro ======+====== Execute Macro Action ======
  
  
-The *Execute Macro* action allows you to execute another macro like a subroutine.  The sub-macro will be executed, and when it is finished, execution will continue on from after this action.+The *Execute Macro* action allows you to execute another macro like a subroutine, though without any ability to pass parameters or receive a result other than through variables (if you want to pass parameters in to a sub-macro or receive a result from it, consider making it a subroutine by adding the [[trigger:Subroutine|Subroutine]] trigger to it and using the [[action:Execute_a_Subroutine|Execute a Subroutine]] action instead).  The sub-macro will be executed, and when it is finished, execution will continue on from after this action.
  
-You can optionally configure the action to be *Asynchronous*, which means the sub-macro will be executed, and the current macro will continue on without waiting so that both macros will be executing at the same time.+You can optionally configure the action to be *Asynchronous*, which means the sub-macro will be executed as a new execution instance, and the current macro will continue on without waiting so that both macros will be executing at the same time.
  
 You can optionally configure a parameter for the executed macro which will be available via the [[token:TriggerValue|%TriggerValue%]] token. You can optionally configure a parameter for the executed macro which will be available via the [[token:TriggerValue|%TriggerValue%]] token.
  
 {{ :action:wiki-macro-minimal-160125.jpg?600 |}} {{ :action:wiki-macro-minimal-160125.jpg?600 |}}
- 
---- 
  
 {{ :action:wiki-macro-with-parameter-160124.jpg?600 |}} {{ :action:wiki-macro-with-parameter-160124.jpg?600 |}}
- 
---- 
  
 {{ :action:wiki-macro-minimal-result-160125.jpg?450 |}} {{ :action:wiki-macro-minimal-result-160125.jpg?450 |}}
- 
  
 ExtraSearchTags: *Run Macro*, *Run a Macro*, *Call Macro*, *Sub Macro* ExtraSearchTags: *Run Macro*, *Run a Macro*, *Call Macro*, *Sub Macro*
Line 23: Line 18:
 ===== See Also ===== ===== See Also =====
  
----- 
 === Triggers === === Triggers ===
  
Line 29: Line 23:
 * [[:Triggers|See all Triggers]] * [[:Triggers|See all Triggers]]
  
-----+=== Actions ===
  
 +* [[action:Execute_a_Subroutine|Execute a Subroutine]] action
 +* [[/Actions|Actions]]
  
action/Execute_a_Macro.1462481686.txt.gz · Last modified: by alain

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki