iimGetErrorText

From iMacros
Jump to: navigation, search

Returns the error or success message associated with the last scripting interface method call.

Syntax iMacros Browser IE Plug-in Firefox Chrome

String err_message = iimGetErrorText()

Parameters

None

Examples

Display a dialog if iMacros cannot be initialized (Visual Basic Script example):

Dim imacros, iret 
Set imacros = CreateObject("imacros") 
iret = imacros.iimOpen() 
If iret < 0 Then 
  MsgBox "An error occured: " + vbNewline + _ 
    imacros.iimGetErrorText() 
End If

See Also

iimOpen, iimPlay, iimDisplay, iimClose, iimGetExtract, iimTakeBrowserScreenshot