Site Tools
Sidebar
User's Manual
t2:macro_run
macro_run
macro_run - Run a macro
Description
macro_run("<filename>.gmk");
Run the macro file named <filename> stored in the SD-Card.
Similarly as combo_run , macro_run has no effect if there is a macro already running. This command can be called indiscriminately to keep the macro running indefinitely. |
Parameters
- <filename>: Filename of the macro to run. The <filename> must have 8 characters or less.
Examples
Example #1 macro_run() example
main { // While BUTTON_2 is held-down ... if(get_val(BUTTON_2)) { // ... keep the macro "Example" running in an endless loop. macro_run("Example.gmk"); } }
See Also
t2/macro_run.txt · Last modified: 2018/06/27 04:48 by J2Kbr