Page 1 of 1

[Autohotkey-jk] How to launch an internet explorer comobject?

Posted: 15 Apr 2022, 19:42
by func
The following works for AHKv2

Code: Select all

ie := ComObject("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://www.autohotkey.com/")
I converted this to the syntax for Autohotkey-jk, shared below, but it doesn't work, it gives an error that parameter #1 of comObject requires a number, not a string

Code: Select all

ie = comObject("InternetExplorer.Application") // TypeError: Parameter #1 requires a Number, but received a String
ie.Visible = true
ie.Navigate("https://www.autohotkey.com/")
Is there some other way to represent "InternetExplorer.Application" as a number to launch an IE window inside Ahk-jk? I want to use the IE window as a GUI with html and css.

Re: [Autohotkey-jk] How to launch an internet explorer comobject?

Posted: 18 Apr 2022, 05:33
by lexikos
At the moment, AutoHotkey-jk is based on v2.0-a130, so use the comObjCreate function. v2.0-a131 and later has the ComObject class (and ComValue for what ComObject used to do).