iimDisplay()

(Copy URL in PhpBB Forum Format - Info)

From iMacros

Jump to: navigation, search

Displays a short message in the iMacros browser. A typical usage would be to distinguish several running iMacros Browsers or display information on the current position within the script. If you want to hide the display so that you can manually trigger macros with the Play button please use iimDisplay ("#HIDEDISPLAY").

A list of return codes is available here [1].

Syntax

int ret_code = iimDisplay ( String message [, int timeout] ) 

Parameters

  • String message
    The message that is to be displayed in the iMacros Browser
  • int timeout
    The optional timeout value determines 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 imacros1, imacros2, iret 

Set imacros1 = CreateObject("imacros") 
iret = imacros1.iimInit() 
iret = imacros1.iimDisplay("This is the 1st iMacros Browser")   

Set imacros2 = CreateObject("imacros") 
iret = imacros2.iimInit() 
iret = imacros2.iimDisplay("This is the 2nd iMacros Browser")
Personal tools