Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS Shell Application Windows doesn't return correct number of IE Tabs

Status
Not open for further replies.

kuldokk

Programmer
Mar 10, 2018
1
0
0
DE
I am trying to access to the second tab on Internet Explorer 11 with the following vbs code without success:
[pre]
With CreateObject("Shell.Application").Windows()
WScript.Echo "Shell windows count = " & .Count
For z = 0 To .count-1
WScript.Echo z & " , " & .Item(z).LocationURL
Next
End With
[/pre]
Bmk5J_smvsvx.jpg

When I programmatically click on "Print" on the Ribbon in the first tab, the second tab will come. The second tab has the same URL with the first tab.
Problem: I could not programmatically access to tab #2. The code only return 1 for .Count
The code worked properly on 3 other computers that I can tested but it doesn't on one of my computer. Maybe you guy have an idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top