SET
(Copy URL in PhpBB Forum Format - Info)From iMacros
(Redirected from 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.
You can use any variable as input for SET, e. g. SET !VAR1 {{myvariable}} or SET !EXTRACT {{!COL1}}.
Contents |
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
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 (iMacros for Firefox and Chrome do not support this for all built-in variables)
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 Chrome. Use the iimSet command from a script instead.
