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

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
func
Posts: 47
Joined: 20 May 2016, 20:52

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

15 Apr 2022, 19:42

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.
lexikos
Posts: 9635
Joined: 30 Sep 2013, 04:07
Contact:

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

18 Apr 2022, 05:33

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).

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Descolada and 23 guests