Page 1 of 1

[SOLVED] COM+IE - Can't locate a preexisting browser object

Posted: 26 Apr 2014, 16:55
by berban
Hey community,

I use COM with internet explorer browser objects a lot. I use the following method to retrieve the browser object of existing windows:

Code: Select all

; Adapted from Jethrow's IEGet()
Explorers := ComObjCreate("Shell.Application").Windows
; Then iterate through the windows to find a match between This.FullName and the title of the active window, etc
HOWEVER, sometimes (not always, but fairly often) the active window is NOT listed among the browser objects retrieved in this manner. For instance if I have 5 internet explorer windows open, the Explorers object might only contain 4 browser objects. I don't remember experiencing this problem before updating to IE10 (I use IE11).

Has anyone experienced this problem, and know a solution? Thanks!

Re: COM+IE - Unable to locate a preexisting browser object

Posted: 27 Apr 2014, 11:55
by jethrow
I haven't seen this issue, though I haven't been doing much windows scripting lately. If IEGet() isn't working for you, I'd recommend using WBGet(). It can be found here.

Re: COM+IE - Unable to locate a preexisting browser object

Posted: 28 Apr 2014, 03:35
by berban
This works, thanks! :D