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
|EXTRACT (Part of the TAG command)|
|FORWARD (version 12.6 and above)|
|Tip: How to make if/then decisions with iMacros.|
Built-in variable names always start with an exclamation mark ("!"). See also this iMacros variable types overview.
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.
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())
- iimGet (iMacros 12.6)
- iimGetErrorText (old: iimGetLastError())
- iimGetExtract (old: iimGetLastExtract())
- iimGetStopwatch (Old: iimGetLastPerformance)
- iimPlay and iimPlayCode()
- 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)
- -playlist (iMacros 12.6)
- -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).
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
To see a table of all of the command line switches along with their descriptions and aliases, enter:
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.