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 [text]
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).
print <argument> ...
Print messages to the console window. The argument will be treated as an expression or a string.
sleep <seconds>
Stops the macro execution for the given time in seconds.
setwarn <BOOL>
Enable/Disable warnings.
setreplace <BOOL>
If set some calculations will not generate a new buffer. Instead it will replace the source buffer (smooth, fftsmooth, datareduction, spline)