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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue accessing IE9 with the Shell.application com object.

Status
Not open for further replies.

clovisc

Programmer
Aug 27, 2012
4
0
0
GB
I have an issue with the shell.application com object and IE9.

This code:

Code:
set-variable win (New-Object -comObject shell.Application) -Scope Global
set-variable handle ((Select-Window -Title $window).handle ) -Scope Global 
set-variable IE (@($win.windows() | ? { $_.HWND -eq $handle})[0]) -Scope Global

Works perfectly for IE8, but not for IE9.

What am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top