The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
iimGetBrowserPid
Jump to navigation
Jump to search
Available in iMacros 10.4.
Retrieves the process id of the last opened browser via iimOpen.
Note: iimOpen must actually launch a new instance of the browser for iimGetBrowserPid to work. If iimOpen attaches to an existing instance, e.g. iimOpen(, False), then iimGetBrowserPid returns 0.
Syntax
long browser_pid = iimGetBrowserPid()
Parameters
no parameters
Examples
Visual Basic Script example:
Dim l,i, pid Set iim1= CreateObject ("imacros") i= iim1.iimOpen If i < 0 Then msgbox iim1.iimGetErrorText() Else pid = iim1.iimGetBrowserPid() iim1.iimDisplay("PID = " & CStr(pid)) End If