Command:/macro

From the wonderful RedGuides Wiki

This command is added by MacroQuest

Syntax Key
Notation Description
Text without brackets or braces Required items
<Text inside angle brackets> Placeholder for which you must supply a value
[Text inside square brackets] Optional items
Vertical bar (|) Separator for mutually exclusive items; choose one
{Text | inside | braces} Set of required items; choose one
Ellipsis () Items that can be repeated
Syntax /macro <filename> [ <param0> [ <param1> [...]]]
Description Starts running a macro. Optional parameters can be added to the end of the /macro line, and the parameters will be passed to Sub Main within that macro.

Note:

  • Calling a macro from another macro will end the calling macro.
  • Invoking a /macro from within a macro will cause the first line to be skipped in the new macro.

Options

Examples

To run the macro "mymacro" type:

/macro mymacro

To run the macro "mymacro" with parameters "water flash" and "metal bits" type:

/macro mymacro "water flask" "metal bits"

See also