Page 1 of 1

You seem to be using an unsupported browser

Posted: Tue Jan 30, 2018 1:35 am
by IdeasVacuum
PB WebGadget:
https://www.google.co.uk/maps/
You seem to be using an unsupported browser.
Old browsers can put your security at risk, are slow and don't work with newer Google Maps features. To access Google Maps, you'll need to update to a modern browser.
Worked sometime last year, doesn't work now, probably because more websites are now HTML5?

To get it to work before, this work-around was applied:

Code: Select all

;===== Registry: temp setting to optimise web gadget =====
Global     sglpValueName.s = GetFilePart(ProgramFilename())
Global          lglpData.l = 11001
Global lglpdwDisposition.l
Global       igphkResult.i

If RegCreateKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #Null, #REG_OPTION_VOLATILE, #KEY_ALL_ACCESS, #Null, @igphkResult, @lglpdwDisposition) = #ERROR_SUCCESS
    RegSetValueEx_(igphkResult, sglpValueName, 0, #REG_DWORD, @lglpData, SizeOf(LONG))
      RegCloseKey_(igphkResult)
EndIf
Any ideas?

Re: You seem to be using an unsupported browser

Posted: Tue Jan 30, 2018 6:02 pm
by Nico
I tested your code and it worked well with Purebasic 5.61 (x86 and x64).

Sorry for not being able to help you further.

Code: Select all

;===== Registry: temp setting to optimise web gadget =====
Global     sglpValueName.s = GetFilePart(ProgramFilename())
Global          lglpData.l = 11001
Global lglpdwDisposition.l
Global       igphkResult.i

Debug sglpValueName

If RegCreateKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #Null, #REG_OPTION_VOLATILE, #KEY_ALL_ACCESS, #Null, @igphkResult, @lglpdwDisposition) = #ERROR_SUCCESS
    RegSetValueEx_(igphkResult, sglpValueName, 0, #REG_DWORD, @lglpData, SizeOf(LONG))
    RegCloseKey_(igphkResult)
EndIf


If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
    WebGadget(0, 10, 10, 580, 280, "https://www.google.co.uk/maps/") 
    Repeat 
    Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf

Re: You seem to be using an unsupported browser

Posted: Tue Jan 30, 2018 6:21 pm
by IdeasVacuum
Hi Nico

Thanks for testing, my tests too are Win7, PB5.61 x64 and x86