Page 1 of 1

Error 0x80020011 on ie.Refresh - IE 11

Posted: 23 Aug 2017, 11:53
by jimmykent
Hi,

First of all, I'd like to say Pulover's Macro Creator is a well crafted, easy to use software tool. Quite amazing actually!

I have a macro that generates this error (0x80020011 - Does not support a collection) on IE Method:Refresh (ie.Refresh("")). There are several other IE methods in the macro that execute without issue. Could this be an IE version compatibility problem perhaps?

Thanks in advance for any help!

Re: Error 0x80020011 on ie.Refresh - IE 11

Posted: 23 Aug 2017, 14:42
by jeeswg
I got the same error as you when I used oWB.Refresh(""), but it worked fine when I removed the double quotes.

Code: Select all

q::
;[WBGet function]
;Basic Webpage Controls with JavaScript / COM - Tutorial - Tutorials - AutoHotkey Community
;https://autohotkey.com/board/topic/47052-basic-webpage-controls-with-javascript-com-tutorial/

WinGet, hWnd, ID, A
oWB := WBGet("ahk_id " hWnd)
oWB.Refresh()
oWB := ""
return

Re: Error 0x80020011 on ie.Refresh - IE 11

Posted: 23 Aug 2017, 15:53
by jimmykent
Excellent!

Thank you jeeswg.