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 listed below and on each command detail page denote browser compatibility. Commands that are supported in all browsers work exactly the same in each browser, so macros created in the iMacros Browser (or Internet Explorer) can be replayed in iMacros for Firefox and vice versa. Browser specific differences are automatically handled by iMacros.
iMacros Commands Reference
' (Comment) | |
ADD | |
BACK | |
CLEAR | |
CLICK | |
DISPLAY | |
DS | |
EVAL | |
EVENT | |
EXTRACT (Part of the TAG command) | |
FILEDELETE | |
FILTER | |
FORWARD (version 12.6 and above) | |
FRAME | |
IMAGECLICK | |
IMAGESEARCH | |
ONCERTIFICATEDIALOG | |
ONDIALOG | |
ONDOWNLOAD | |
ONERRORDIALOG | |
ONINSECURECONNECTION | |
ONLOGIN | |
ONPRINT | |
ONSECURITYDIALOG | |
ONWEBPAGEDIALOG | |
PAUSE | |
PRINTPDF | |
PROMPT | |
PROXY | |
REFRESH | |
SAVEAS | |
SAVEITEM | |
SCREENSHOT | |
SEARCH | |
SET | |
SIZE | |
STOPWATCH | |
TAB | |
TAG | |
TRAY | |
URL | |
VERSION | |
WAIT | |
Error Codes | |
Tip: How to make if/then decisions with iMacros. |
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, Internet Explorer, 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 (iMacros 12.6)
- -profiler
- -silent
- -simpleui
- -title
- -tray
- -variables (iMacros 12.6, deprecated: -var_varname)
In addition to the switches above, the following switches can be used with the iMacros Sidebar for IE:
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
For details on the iMacros WebBrowser Component for .NET, please see the Component wiki page.