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]
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?
[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]
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?