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
SET
Defines the value of a variable. The SET command supports the built-in variables, pre-defined user variables !VAR0 thru !VAR9, as well as user-defined macro variables (iMacros Browser/IE only).
You can use any variable as input for SET, e. g. SET !VAR1 {{myvariable}} or SET !EXTRACT {{!COL1}}.
Syntax
SET var value
Parameters
- var
- A built-in variable name, or !VAR0 thru !VAR9, or a user-defined variable name
- value
- The value that will be added to var
Examples
Create a user-defined variable (not supported in iMacros for Firefox or Chrome)
SET myDelay 10 WAIT SECONDS={{myDelay}}
Set a variable with spaces:
SET !VAR1 Hello<SP>World => Content of !VAR1 is "Hello World".
or:
SET !VAR1 "Hello World"
Use "\" (Backslash) to escape reserved characters like "\" itself inside quoted values:
SET !FOLDER_STOPWATCH "c:\\Temp\\With Spaces"
Set a numerical value
SET !TIMEOUT_PAGE 360 => The new timeout value is 360 seconds (5 minutes).
Save and restore the value of a built-in variable
SET !VAR1 {{!TIMEOUT_STEP}} SET !TIMEOUT_STEP 0 . . (other macro commands) . SET !TIMEOUT_STEP {{!VAR1}}
Notes
- The ability to create user-defined macro variables with the SET command is available in iMacros 7.50 and later.
- User-defined variables are currently not supported in iMacros for Firefox or Chrome. Use the iimSet command from a script instead.