Page 1 of 1
Update Browser-Engine used by WebGadget()
Posted: Sun Mar 19, 2017 5:47 pm
by PureLust
Hi Fred,
would it be possible for you to update the Browser-Engine used by PBs WebGadget()?
Sites like Google-Maps do not work with this old Implementation (Error: "Sie verwenden offenbar einen nicht unterstützten Browser."):
Code: Select all
URL.s = "https://www.google.com/maps/"
OpenWindow(0,0,0,1000,600,"Browser Test", #PB_Window_SystemMenu | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
WebGadget(0,0,0,1000,600,URL)
While WaitWindowEvent() <> #PB_Event_CloseWindow : Wend
An Implementation of Chromium would be fantastic but a newer Version of IE (or Edge) would be fine too.
Re: Update Browser-Engine used by WebGadget()
Posted: Sun Mar 19, 2017 10:07 pm
by IdeasVacuum
What's needed is the actual engine. PB uses WebKit for Mac and Linux, this is what we need on Windows.
The Midori Browser, for example, is based on WebKit and has a Windows version.
Midori Browser
WebKit
Re: Update Browser-Engine used by WebGadget()
Posted: Tue Mar 21, 2017 8:59 pm
by GPI
By default, the webgadget use for compatiblity reasons a very old version. You can change this, by adding a Regestry-Key!
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Maybe purebasic should automatic add this key and remove it on Program exit.
__________________________________________________
URL tags added
26.04.2017
RSBasic
Re: Update Browser-Engine used by WebGadget()
Posted: Tue Mar 21, 2017 9:09 pm
by IdeasVacuum
This is the full link:
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Looks complicated? In an ideal world, your app would not change a Customer's settings since other apps they use could be affected.
Re: Update Browser-Engine used by WebGadget()
Posted: Wed Mar 22, 2017 3:31 pm
by GPI
It isn't complicated, simple add a registry entry with the execute name as key:
HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)
SOFTWARE
Microsoft
Internet Explorer
Main
FeatureControl
FEATURE_BROWSER_EMULATION
mypurebasic.exe = (DWORD) 11000
And it will use IE11 instead of very-old-ie. Maybe Purebasic should do this automatically?
bzw:
Code: Select all
WebGadget(#gWeb_Twitch,5,5,100,100,"about:blank")
MyWebGadget.IWebBrowser2=GetWindowLong_(GadgetID(#gWeb_Twitch),#GWL_USERDATA)
MyWebGadget\put_Silent(#True) ; Suppress JavaScript error messages.
Will disable the error-messages
but i think the best solution would be, to use webkit in windows, so the compatiblity between Max, Linux and Windows-Version would be the best.
Re: Update Browser-Engine used by WebGadget()
Posted: Thu Mar 23, 2017 9:55 pm
by ar-s
Even IE11 is starting to be usefull..