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

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Posts: 94
Joined: 14 Apr 2014, 03:20

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

26 Apr 2014, 16:55

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!
Last edited by berban on 28 Apr 2014, 03:35, edited 1 time in total.
User avatar
Posts: 188
Joined: 30 Sep 2013, 19:52
Location: Iowa

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

27 Apr 2014, 11:55

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: EddyUMS, famko, soma, tatagi and 38 guests