Run (Go+) or stop (Off) a macro and observe it
gma3_run_macroRuns or stops a grandMA3 macro and observes its execution state over time, including pauses, completion, running/idle status, and open dialogs, to verify macro behavior without a Lua loop.
Instructions
EXECUTES: action go sends Go+ Macro N (starts it, or continues it after a Go wait); off sends Off Macro N. Then OBSERVES the macro's running line over time, on the server side (no Lua loop needed), for observe_seconds (default 3, max 60): finished, paused_at_go (a manual wait), running, idle. After a go it also reads the console's top dialog: a line that opened one (a Lua Confirm(), e.g. the MA Show Start's wizards) waits for it, and execution.dialog then has its title, message and buttons, to answer with gma3_dialog (dialog: false when none is open; needs bridge 0.42.0; unknown on an older one). The result separates dispatched (the command was accepted) from observed (the run state seen); it never claims that every line succeeded, because a failing line does not stop a macro. Lines with a (prompt) ask the operator for input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro | Yes | ||
| action | Yes | ||
| data_pool | No | Data pool number (DataPool n). Default: the current data pool, as without this parameter. | |
| interval_ms | No | ||
| observe_seconds | No |