The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
-var varname
Assigns a value to the variable varname during replay of a macro.
If values include whitespaces then please replace them with [SP]. Linebreaks in command line options should be replaced by the [BR] command.
Value
Any character or series of characters.
Examples
imacros.exe -macro test1 -var_LASTNAME Schaefer -var_FIRSTNAME Peter
Note that the name of the variable after the "var_" prefix must correspond to the variable name used in the macro. The example above will assign the value "Schaefer" to the variable "LASTNAME", and "Peter" to the variable "FIRSTNAME" when running macro "test1".
' test1.iim PROMPT "Hi, my name is {{FIRSTNAME}} {{LASTNAME}}"
See Also