Page 1 of 1

iimplay("",FALSE) always starts a new brower?

Posted: Thu Feb 01, 2007 7:11 am
by mjohnson1857
I thought the FALSE parameter should connect to the already open iMacro browser.

I am running from Microsoft Access visual basic. My form first opens a script that opens a browser and logs onto a real estate service. Then based on user input it is going to call various macros to retrieve data. Whenever I try to play a new macro from the form usiing iimInit("",FALSE) and then iimPlay(macroname) a new iMacro browser opens and my real estate service requires a new logon and password.

Sample code is as follows:

Private Sub test_Click()

Dim iim1 As Object
Dim iplay, iret As Integer
Dim data, sCmdLine As String

Set iim1 = CreateObject("InternetMacros.iim")
iret = iim1.iimInit(, False)
iplay = iim1.iimPlay("getParcelData")
data = iim1.iimGetLastExtract()

End Sub

What am I doing wrong?

Posted: Thu Feb 01, 2007 6:25 pm
by whitertlnav
It looks like you need to use 'iret' at the beginning of each line of code instead of 'iplay' or 'data', like this:

Set iim1 = CreateObject("InternetMacros.iim")
iret = iim1.iimInit(, False)
iret = iim1.iimPlay("getParcelData")
iret = iim1.iimGetLastExtract()

Hope this helps.