I have registered a custom URL like this:
- Code: Select all
HKEY_CLASSES_ROOT
(Default) = "URL:CefSimple Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "cefsimple.exe,1"
shell
open
command
(Default) = "C:\Program Files\MyApp\cefsimple.exe" -url "%1"
<a href="cefsimple://bbc.co.uk">Go to BBC</a> // Link 1
<a href="cefsimple://google.co.uk">Go to Google</a> // Link 2
Clicking on Link 1 launches cefsimple.exe and it navigates to BBC fine. When I click on Link 2 I find the existing cefsimple window handle so that there is only one instance of cefsimple. This is working fine. What I would like to do is to navigate to google in the existing cefsimple window. How can I pass a new URL to already running CEF application and let it navigate to the new URL?
Many thanks