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
Command Reference
A high-level overview of the different versions of iMacros can be found here.
The browser icons denote browser compatibility. Commands that are supported in multiple browsers typically work the same, with any browser-specific differences noted on the command's reference page.
iMacros Commands Reference
Built-In Variables
Built-in variable names always start with an exclamation mark ("!"). See also this iMacros variable types overview.
User-defined Variables
User-defined variables are created with the SET and iimSet commands. Use iimSet to pass variables from script code to a macro, and iimGet to retrieve variables from a macro. See also this iMacros variable types overview.
Scripting Interface Command Overview
The Scripting Interface works with the iMacros Browser, Firefox and Chrome (see iimOpen for details on how to switch between the browsers).
- iimOpen (old: iimInit())
- iimGetBrowserPid
- iimDisplay
- iimGet (iMacros 12.6)
- iimGetInterfaceVersion()
- iimGetErrorText (old: iimGetLastError())
- iimGetExtract (old: iimGetLastExtract())
- iimGetStopwatch (Old: iimGetLastPerformance)
- iimGetPerformance
- iimPlay and iimPlayCode()
- iimSet
- iimSetWindowTitle()
- iimTakeBrowserScreenshot
- iimClose (old: iimExit)
- Error handling: Scripting Interface Return Codes
Refer to the iMacros Editions Comparison Table to see which editions support the scripting interface (API)
Command Line Interface Overview
- -delay
- -help
- -kioskmode
- -logfile
- -loop
- -macro
- -noexit
- -playlist (version 12.6 and above)
- -profiler
- -silent
- -simpleui
- -title
- -tray
- -variables (version 12.6 and above, deprecated: -var_varname)
Refer to the iMacros Editions Comparison Table to see which iMacros editions support the command-line interface (CLI).
Syntax
Switch names can be prefixed with either a single hyphen, two hyphens, or a forward slash. Some switches also have abbreviations (or aliases). For switches that take a value, the value can be specified using a space, equals sign, or colon character after the switch name. All of the following examples are valid:
imacros.exe -macro MyMacro
imacros.exe --macro=MyMacro
imacros.exe /m:MyMacro
To see a table of all of the command line switches along with their descriptions and aliases, enter:
imacros.exe /?
or
imacros.exe -h
Error Handling
iMacros includes detailed error handling.
iMacros Error Codes
Please see the list of general iMacros Error-Codes.
Scripting Interface Error Codes
Even a web browser crash or freeze does not stop the Scripting Interface. Instead, it will simply return an error code and you can start a new instance. Please see the list of Scripting Interface Return Codes.
Component for .NET (discontinued)
For details on the iMacros WebBrowser Component for .NET, please see the Component wiki page.