Macro Language: Interactive Commands

ask <text>

This command stops the macro, shows an alert box, displays the text, and let you choose to stop or continue the macro.

askoption <text> <button1> <button0>

This command stops the macro, shows an alert box, displays the text, and provide two buttons. The result will be stored in the variable option (1 = button1, 0 = button0).

browse

Opens a panel for file selection. The selected filename will be stored in $file.

input

This command brings up an input panel an let you enter a value. The value will be stored in variables input (numerical variable for expressions) and $input (string variable).

plot

Normally your document will be updated at the end of the macro execution. This command allow to update the document when called.

print <argument> ...

Print messages to the console window. Argument will be treated as expression or string.

sleep <seconds>

Stops the macro execution for the given time in seconds.