iimExit
Top  Previous  Next


Closes the iMacros browser. It first attempts to close the browser by sending it a direct message. If the browser does not react (e.g. because the website made the browser freeze), it terminates the browser. Thus the Scripting Engine will keep control even if the browser itself is "frozen".

A list of return codes is available here.


Syntax


int ret_code = iimExit ( [int timeout] )


Parameters

int timeout
The optional timeout value determins when the Scripting Interface returns a timeout error if the command is not completed in time. The default value is 3 seconds.


Examples

Visual Basic Script example:

Dim imacros, iret
Set imacros = CreateObject("InternetMacros.iim")
iret = imacros.iimInit()
iret = imacros.iimPlay("mymacro")
iret = imacros.iimExit()


See Also




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