I use COM with internet explorer browser objects a lot. I use the following method to retrieve the browser object of existing windows:
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).
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
Has anyone experienced this problem, and know a solution? Thanks!