Hello everyone,
I'm trying to display any websites in a resizable GUI and don't know how to make the actual website resize while I'm resizing my GUI window.
But most importantly, I'm hoping to be able to display the page by using either Chrome, Firefox or Edge browser as apposed to IE.
Thank you in advance!
Here's my code so far:
Code: Select all
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
gui +resize
Gui Add, Edit, w1080 r1 vURL, www.google.com
URL=www.google.com
Gui Add, ActiveX, xm w1080 h920 vWB, Shell.Explorer
Gui Show,, Fenster
Gui, Maximize
WB.Silent := True
WB.Navigate(URL)
ComObjConnect(WB, WB_events)
Loop 6
{
Gui Flash
Sleep 500
}
class WB_events
{
NavigateComplete2(wb, NewURL)
{
GuiControl,, URL, %NewURL% ; Update the URL edit control.
}
}
ESC::
ExitApp