Posts: 39
Threads: 14
Joined: Nov 2011
I'm trying to load a JavaScript based website into a dialog, but when the webpage tries to load I get the following message in a pop up: "Error: this browser does not support WebSockets". The website itself works fine on any browser I've tried it on, but it refuses to open in the dialog. I've also tried calling it directly with it's ip:port, and also through a web address. I tried going through some of the web page examples in the archive, but I didn't have any luck. Any help/ideas are appreciated. Thanks!
Posts: 12,071
Threads: 140
Joined: Dec 2002
Try this.
Macro
Macro2548
rset 1 "qm.exe" "Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET"
From:
https://www.google.lt/#q=WebSockets+web+browser+control
http://stackoverflow.com/questions/2140 ... er-control
http://stackoverflow.com/questions/1833 ... 2#18333982
I cannot test, because don't know a web page that uses WebSockets.
Posts: 39
Threads: 14
Joined: Nov 2011
Thanks for the reply Gint! I will take a look.
Posts: 39
Threads: 14
Joined: Nov 2011
I gave it a shot in a few different methods, but it did not do the trick for me. Is it possible to embed a Google chrome window in a quick macros dialog?
Posts: 12,071
Threads: 140
Joined: Dec 2002
Should be possible with Chromium Embedded Framework (CEF), but difficult.
https://bitbucket.org/chromiumembedded/cef
QM can use C API.
https://bitbucket.org/chromiumembedded/ ... TheCAPI.md
But most documentation/samples are for C++. Anyway, I think it would be too difficult for QM users.
Posts: 12,071
Threads: 140
Joined: Dec 2002
Posts: 12,071
Threads: 140
Joined: Dec 2002
One of these should work.
Macro
Macro2549
rset 1 "qm.exe" "Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET"
rset 1 "qm.exe" "Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET" HKEY_LOCAL_MACHINE
str wow64=iif(_win64 "\Wow6432Node" "")
rset 1 "qm.exe" F"Software{wow64}\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET"
rset 1 "qm.exe" F"Software{wow64}\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET" HKEY_LOCAL_MACHINE
Some features can be enabled with API function CoInternetSetFeatureEnabled, but it does not support FEATURE_WEBSOCKET.
Posts: 39
Threads: 14
Joined: Nov 2011
Thank you Gint! These were very helpful.