Error Handling
Top  Previous  Next

iMacros can handle all errors that occur during replay. Since replay of macros can be achieved by different means, the error management is different as well.

Macro level
You can define a macro to play after an error. This can be done globally through the Error Handling tab of the Options Dialog, or with SET !ERRORMACRO yourmacro within a macro, which will override any global setting.

You could also decide to ignore errors with
SET !ERRORIGNORE YES.

Related Example Macro: Demo-SetErrorMacro

Batch file level
The variable
%ERRORLEVEL% is filled after the macro is completed. Values greater than zero indicate success, negative values indicate a problem.

Related Example Batch File: Example-Errorlevel.bat

Scripting level

The command
iimPlay returns a status value. Values greater than zero indicate success, negative values indicate a problem.

The error codes returned on the batch and scripting level are the same codes that are displayed in the iMacros software itself. They allow a fine reaction on every possible problem iMacros can encounter. Scripting Interface specific errors are discussed here.

Related Example Script: Combine-Macros.vbs






Page URL http://www.iopus.com/imacros/help/error_handling.htm