Make a Homemade IE toolbar button (turn) in VBScript

Source: Internet
Author: User
Make an Internet Explorer toolbar button with VBScript
Wen/Xu Xi
The various buttons on IE toolbars are not Microsoft's patents, and ordinary users are able to customize them, add buttons that they want to set up, and have a lot of information about how to add them. The specific implementation of the two kinds, one is the use of lengthy and complex VC or VB code program, this requirement for ordinary users is a bit too high, usually make people full head fog and not to achieve the goal; the other is to do it by hand, but this method is extremely unsafe because of the drastic modification of the system registry. Accidentally will be self-defeating, let you reinstall the system!
I'm here to introduce a compromise method that uses VBScript's Homemade IE toolbar button, which does not require lengthy and complex program code, and does not require tedious changes to the system registry, but it can also achieve the purpose of a homemade IE toolbar button.
Whether using VB or VC or manual method to add a button, in the final analysis is to modify the system registry. VBScript is no exception, but its code is easy to understand and safe to learn. Now that you want to change the registry, you need to know the path to the operating target in the registry. The path of IE's homemade toolbar button in the registry is:
[Hkey_local_machinesoftwaremicrosoftinternet Explorerextensions]
Each primary key under the branch represents a homemade toolbar button. Such as:
{Cd67f990-d8e9-11d2-98fe-00c0f0318afe} says: RealPlayer
{57e91b47-f40a-11d1-b792-444553540000} says: Netants
In imitation of these primary keys, we can "make" a {00000000-0000-0000-0000-000000000001} (but note that this key value must be unique, it is not possible to break other toolbar buttons).
Under each of these primary keys, there are usually several key values (all of which are string):
ButtonText: The text displayed on the custom button.
Clsid:ie The class identification code for the toolbar, constant is "{1fba04ee-3024-11d2-8f1f-0000f87abd16}".
Default Visible: Controls whether the custom button is visible, generally "Yes".
Exec: The goal of custom button execution, which can be a link to an executable program or hypertext.
Hoticon: The icon that appears when you move the mouse over the button.
Icon: Icons that the button displays correctly.
MenuText: The menu item displayed in the IE's Tools menu.
Menustatusbar: The annotation text that appears on the status bar.
Knowing these prerequisites, and then using VBScript to make the IE toolbar button is not difficult, I will add the "My Computer" button as an example to illustrate the use of VBScript to implement the Internet IE toolbar button method.
Addbutton.vbs (Save the following code as a addbutton.vbs file)
' Define an object that can communicate with the operating system

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.