Create a macro or replace or append its lines (never runs it)
gma3_store_macroCreate, replace, or append grandMA3 macros by storing validated command lines, with optional preview and verification; locked or running macros are refused and nothing is executed.
Instructions
mode (required): create (refuses an existing macro), replace (removes the existing lines first, keeping the macro, its appearance and its executor assignments) or append (adds after the existing lines). lines: [{command, wait (seconds, "follow" or "go" = a manual wait until the next Go+), enabled, add_to_cmdline, execute, name, note, raw}]; name, note, cli of the macro. Before anything is sent the references in each line are checked (single objects named with full keywords; a Store earlier in the macro counts as creating its object); raw: true stores a line unchecked. Refuses a locked or running macro. Sends Store Macro N, Delete/Store Macro N.L and one set per property; NEVER runs the macro. The console rewrites command text outside quotes (trims, collapses spaces, expands abbreviated keywords): every line is read back and compared exactly; a rewritten line is a mismatch unless accept_console_form: true (it is reported in rewritten either way).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | No | ||
| mode | Yes | ||
| name | No | ||
| note | No | ||
| lines | Yes | ||
| macro | Yes | ||
| verify | No | ||
| preview | No | ||
| accept_console_form | No |