IE mystery-add a single dish (recommended)

Source: Internet
Author: User

This article describes how to add a menu item to the Tools drop-down menu of Microsoft Internet Explorer. The newly added menu item indicates that a Microsoft Win32 application is running, or run a script program.

Basic knowledge and environment required
To add a menu item under the Tools menu accurately in Internet Explorer, you must be familiar with registry operations.
In addition, the method discussed here requires the browser to be Internet Explorer version 5 or later.

General Procedure
The steps described in this section must be strictly enforced. If you omit any step (except the optional one), the menu item cannot be added.
Note: the steps described below to add menu items are for all users accessing the machine. To add menus for different users, replace HKEY_CURRENT_USER with HKEY_LOCAL_MACHINE in the following steps.
Create a correct globally unique identifier, namely, GUID.
Use the GUID above to create a new key value under the registry project below:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
(Optional) Create a New String Value MenuCustomize under the following registry project:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ MenuCustomize
If the new menu to be added appears under the "HELP" menu of the browser, set the value of MenuCustomize to "help ". If it is set to another value or MenuCustomize is not set at all, the menu items will eventually appear under the Tools menu.
In the following registry project, create a new string value CLSID:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID> \ CLSID
Set the CLSID value to {1fba04ee-3024-11d2-8f1f-440f87abd16 }.
In the following registry project, create a new string value MenuText:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID> \ MenuText
Set the value of MenuText to the text displayed in the tool menu. Note that text does not support any underlines required for shortcut keys.
(Optional) Create a New String Value MenuStatusBar in the following registry project:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ MenuStatusBar
The text set in MenuStatusBar indicates the information displayed in the browser's status bar when the menu item is selected with high brightness, set the text to the exact meaning of the program or script executed for this menu item.

Add details
After completing the above initial steps, you need to add the key value. The specific value and other steps below depend on the type of the actual running program represented by the menu item. The following describes several possible program types and how to add them:

COM Object
The following steps create a menu item for executing the COM object under the "Tools" menu of the browser. Similarly, if any step is omitted (optional), the menu item cannot be added. In addition, the steps described are for all users accessing the machine. To add menus for different users, replace HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER in the following steps.
Register a COM object.
In the following registry project, create a new string value ClsidExtension:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID> \ ClsidExtension
Set ClsidExtension to the GUID of the COM object.
Besides, the COM object must execute IOleCommandTarget. If a COM object needs to access the DHTML Object Model on the page, IObjectWithSite must be executed.

Script
The following steps create a menu item for executing the script program under the "Tools" menu of the browser. Similarly, if any step is omitted (optional), the menu item cannot be added. In addition, the steps described are for all users accessing the machine. To add menus for different users, replace HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER in the following steps.
In the following registry project, create a new string value Script:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID> \ Script
Set the Script value to the full path of the Script to be run.

Execution Program
The next step is to create a menu item for executing the .exe file under the browser's menu bar. Similarly, if any step is omitted (optional), the menu item cannot be added. In addition, the steps described are for all users accessing the machine. To add menus for different users, replace HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER in the following steps.
In the following registry project, create a new string value Exec:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID>
After the creation is correct, it is as follows:
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Internet Explorer \ Extensions \ <Your GUID> \ Exec
Set the scriptvalue to the full path of the. exe file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.