How to embed Chrome in a GUI with Chrome.ahk or Rufaydium.ahk?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

How to embed Chrome in a GUI with Chrome.ahk or Rufaydium.ahk?

Post by anhnha » 03 Dec 2022, 13:33

Can anyone show how to embed Chrome in a GUI with Chrome.ahk or Rufaydium.ahk?
This is an example I want to convert to Chrome browser as some websites no longer support IE.
(This one does still work though)

Code: Select all

#SingleInstance Force
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer
WB.Silent := True
WB.Navigate("https://autohotkey.com/")
Gui, Show,,Browsers in AHK GUI
Return
GuiClose:
Exitapp
Return
I just succeeded opening Chrome and have been searching but haven't found any simple example to follow. I believe people might have done it somehwere but in some hidden form so I couldn't find or couldn't understand.

Code: Select all

#SingleInstance Force
#Include Chrome.ahk

ChromeInst := new Chrome()
PageInst := ChromeInst.GetPage()
PageInst.Call("Page.navigate", {"url": "https://autohotkey.com/"})
PageInst.WaitForLoad()

Return

anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

Re: How to embed Chrome in a GUI with Chrome.ahk or Rufaydium.ahk?

Post by anhnha » 04 Dec 2022, 04:24

I realized it's not as simple as I thought. It would need something like Positron.ahk which is still under development.


Post Reply

Return to “Ask for Help (v1)”