Call the IE browser chrome browser and visit (openIE.reg custom protocols)

There are four ways to invoke IE browser Google browser. as follows:


 

  1. c ++ socket ie open the url in the browser;
  2. vb generate exe, url to access ie start exe and opens the specified url;
  3. Http achieved through the socket by calling the IE browser and opens the specified url;
  4. chrome custom protocol.

 

Today we are speaking about the use of chrome custom protocol to open ie browser and access the specified page.

Of course, there are a lot of friends have written, I am here to Jiehuaxianfo.

Use:

  1. Add a registry;
  2. In chrome inside with a label written in a jump link;
  3. Optimize the user experience.

 

Add the Registry

Establish a openIE.reg on the desktop (the txt changed reg) file, click Edit to open, write the following in it to a custom protocol (registry), double-click the file to run after completion.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\openIE]

@="URL:OpenIE Protocol""URL Protocol"=""

[HKEY_CLASSES_ROOT\openIE\DefaultIcon]

@="iexplore.exe,1"

[HKEY_CLASSES_ROOT\openIE\shell]

[HKEY_CLASSES_ROOT\openIE\shell\open]

[HKEY_CLASSES_ROOT\openIE\shell\open\command]

@="cmd /c set m=%1 & call set m=%%m:openIE:=%% & call \"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %%m%% & exit"

After writing Double-click the file to run.


 

In chrome inside with a label written in a jump link

<a href="openIE:www.baidu.com"> point I use an external protocol running IE open Baidu </a>

This call IE access to specific sites in chrom inside.

Here is a bad user experience, he will pop up a window black window (cmd command box), the solution is as follows:


 

Optimize the user experience

Create a new alert folder (protocol name) ( Note: All operations completed alert Rename the folder and double-click to run alert.exe )

Into the folder, create three documents, namely alert.reg, openIE.bat, runreg.bat, which is written as follows

alert.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\alert]
@="URL:Alert Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\alert\DefaultIcon]
@="iexplore.exe,1"

[HKEY_CLASSES_ROOT\alert\shell]

[HKEY_CLASSES_ROOT\alert\shell\open]

[HKEY_CLASSES_ROOT\alert\shell\open\command]
@="cmd /c set m=%1 & \"C:\\Program Files\\alert\\openIE.bat\" %%m%% & exit"

openIE.bat

@echo off
set m=%m:alert:=%
set m="%m:separator=&%"
start "" "C:\\Program Files\\Internet Explorer\\iexplore.exe" %m%
exit

runreg.bat

REGEDIT /S alert.reg

 

After the establishment of the folder alert instead alert.exe and double-click to run. Such custom protocol is complete, you can then invoke IE to open the specified directly in the chrome inside pages.

Original Address: https://www.cnblogs.com/xiongze520/p/11684570.html

Reproduced please specify address, thank you!

 

Guess you like

Origin www.cnblogs.com/xiongze520/p/11684570.html