I am trying to run a series of commands within an active Internet Explorer window. I am wanting to copy textbox 1-2-3-4 to textbox 5-6-7-8. When I run:
$ie = (New-Object -com "Shell.Application").Windows()
and then type
I normally get a list of all open windows. If I open Internet Explorer and then navigate to a URL, the IE window shows in this list. When I open a URL bookmark from my desktop, it does not show the window when I run
. Does anyone have any idea why this is happening?
Unfortunately, Shell.Application is really old, deprecated, and not updated any longer. And PowerShell was never really intended for this kind of GUI control – which is why you're kind of forced to use that old COM object. But it is what it is; you've probably just run up against a situation where the COM object hasn't been updated to match the way Windows currently works (that COM object dates back to Windows 95).
You must be logged in to reply to this topic.