Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser: Using default resource handler Options
Stefan Koell
Posted: Monday, January 11, 2016 11:58:20 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 115
Hi,

how can I use default resource handler installed on the system? For example: my machine has installed software which can be invoked by links like vmrc://clone:blabla...

In Chrome (or IE), when I click this link, an application will start on my box.

I'm aware that I can register custom resource handlers but I actually want to use those installed on the system (without registering it) - just like Chrome does. Can you provide some guidance?

Thank you,
Stefan
eo_support
Posted: Monday, January 11, 2016 12:27:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

I believe you just call ShellExecute with the Url.

Thanks!
Stefan Koell
Posted: Tuesday, January 12, 2016 2:17:10 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 115
Thanks for the reply. I was wondering if there's a way to find out which Urls need to be called using ShellExecute. I mean, I shouldn't call it for Urls starting with http or https resource handlers and also not for any registered custom resource handlers. In other words: is EO.WebBrowser only handling http and https resource handlers by default or are there others?

Thank you,
Stefan
eo_support
Posted: Tuesday, January 12, 2016 11:09:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You would need to handle LaunchUrl event. Any protocol that is not recognized by the browser engine will trigger that event. You can then call ShellExecute in that event to pass that Url to the OS.

Thanks!
Stefan Koell
Posted: Tuesday, January 12, 2016 11:11:23 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 115
Thanks! That sounds like a plan.

cheers,
Stefan


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.