Windows 10 & GUI Browser

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ecksphore
Posts: 33
Joined: 03 Feb 2015, 22:36

Windows 10 & GUI Browser

18 Jul 2015, 15:37

How do you create a GUI browser in Windows 10? Since IE has been removed and reports of ActiveX no longer being supported.

This code below no longer works. Is there an alternative work around?

Code: Select all

Gui, Add, ActiveX, x0 y0 w640 h480 vWB, Shell.Explorer
Gui, Show
WB.Navigate( "www.google.com" )
return
 
GuiClose:
ExitApp
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Windows 10 & GUI Browser

18 Jul 2015, 19:31

Like this:

Code: Select all

Gui, Add, ActiveX, x0 y0 w640 h480 vWB, Shell.Explorer
Gui, Show
WB.Navigate( "www.google.com" )
return
 
GuiClose:
ExitApp
:roll:

It works just fine on Windows 10 build 10240, which I believe is the latest build at the moment. Internet Explorer has not been removed and I don't believe it was ever going to be. The original plan I read was to keep IE for compatibility with company intranet sites and such, while the new browser, Edge, focuses on new web standards.

I also don't believe there was ever any plan to remove ActiveX from the OS. Edge doesn't support it; that's all. But I didn't think the (non-Desktop) Internet Explorer app in Windows 8 did either.
ecksphore
Posts: 33
Joined: 03 Feb 2015, 22:36

Re: Windows 10 & GUI Browser

18 Jul 2015, 19:43

When I run the code, for some reason the window comes up blank (on build 10240). I assumed something was changed in the OS.

I guess I'll have to dig around my code and see what's going on.
chipmanners
Posts: 4
Joined: 02 Aug 2015, 17:09

Re: Windows 10 & GUI Browser

02 Aug 2015, 17:12

Hi ecksphore,

I was wondering if you figured out how to get the Shell.Explorer working in the GUI. All my scripts that use the GUI Browser don't work

Any help would be greatly appreciated.

Thanks,
Chip
Techtiger255 Log Out

Re: Windows 10 & GUI Browser

17 Aug 2018, 17:10

Code: Select all

Gui Add, Edit, w930 r1 vURL, https://autohotkey.com/boards/
Gui Add, Button, x+6 yp w44 Default, Go
Gui Add, ActiveX, xm w980 h640 vWB, Shell.Explorer
ComObjConnect(WB, WB_events)  ; Connect WB's events to the WB_events class object.
Gui Show
; Continue on to load the initial page:
ButtonGo:
Gui Submit, NoHide
WB.Navigate(URL)
return

class WB_events
{
    NavigateComplete2¬(wb, NewURL)
    {
        GuiControl,, URL, %NewURL%  ; Update the URL edit control.
    }
}

GuiClose:
ExitApp
That should work... Works for me...
I got the code from - https://autohotkey.com/docs/commands/Gu ... tm#ActiveX
:mrgreen: :mrgreen: :shh:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput and 204 guests