jfkrueger119584

Hello,

This used to work fine (in ie6) to get a reference to an IE window and pull a value off of the document:

Dim objIE
Set objIE = shell.Windows.Item

If (Not objIE Is Nothing) Then
'Set session variable and submit the form.
session = objIE.document.forms("DWISDBFORM").elements("SESSIONID").value
End If

'Object Cleanup
Set objIE = Nothing

Once installing IE7, it no longer works (objIE is nothing). I figured it probably had something to do with the tabs, but no documentation was to be found. I tried changing the "Set objIE = ..." line to the following:

Set objIE = objShellWindows.item(shell.windows.count - 1)

This works on some machines, but not others. Can anyone help me out here It is a fairly critical application in our business.

JFK



Re: Internet Explorer Web Development IE7 Breaks VBScript

jfkrueger

By the way, this is being run from a .vbs file, not on a web page of any kind.



Re: Internet Explorer Web Development IE7 Breaks VBScript

jfkrueger

Apparently nobody else could figure it out either. I am using a workaround now and no longer need the solution anyway.