Use the script language and right-click the IE menu

Source: Internet
Author: User
Right-click the script language and IE menu:
We can use the registry to control the IE shortcut menu. when you install flashget (Internet Express), you will find two more items in the right-click ie menu: "download by Internet Express" and "Download all links by Internet Express ", in this case, you open the registry and have these two primary keys under HKEY_CURRENT_USER/software/Microsoft/Internet Explorer/menuext. both primary keys have two values. One is the default string value, specifying the URL to be opened by selecting this menu command, and IE opens it in a hidden window, and hide the window external. the value of menuarguments is set to the current window object. After the script program contained in the URL dialog page is executed, the window is automatically closed. the other name is contexts, which is the DWORD value. It specifies under what circumstances the menu item needs to be displayed. for specific values, see.
(0x1 <context_menu_default) (equal to 0x1) // display with missing time
(0x1 <context_menu_image) (equal to 0x2) // This item is displayed when you right-click an image
(0x1 <context_menu_control) (equal to 0x4) // This item is displayed when you right-click a form element.
(0x1 <context_menu_table) (equal to 0x8) // This item is displayed when you right-click a table.
(0x1 <context_menu_textselect) (equal to 0x10) // This item is displayed when you right-click the highlighted text.
(0x1 <context_menu_anchor) (equal to 0x20) // This item is displayed when you right-click the link.
(0x1 <context_menu_unknown) (equal to 0x40) // right-click to display this item in a place other than the top of the page
Now we write a script program to get the value of the password box.
<! --Getpassword.htm->
<Script language = "VBScript">
Sub GetPassword ()
Set srcevent = External. menuarguments. Event
Set doc=external.menuarguments.doc ument
Set ele = Doc. elementfrompoint (srcevent. clientx, srcevent. clienty)
If ELE. type = "password" then
If ELE. value = "" then
Alert ("the password is blank ")
Else
Alert ("Password:" + ELE. value)
End if
End if
End sub
Call GetPassword ()
</SCRIPT>
Save the script getpassword.htm to the root directory of the C drive, and create a primary key in the registry HKEY_CURRENT_USER/software/Microsoft/Internet Explorer/menuext/. The key name is "get password ", the default value is the path C:/getpassword.htm of the HTM file. Add another DWORD value under the primary key with a value of 4, indicating that this item is only displayed when you right-click the form element. close the registry, restart the IE window, click the Password box, and this item will appear. Click this item to bring up a dialog box to show you the password. in fact, all the things go to Rome, as long as you study them carefully. This article can only be used for research, and used when the password is forgotten, and cannot be used as it, so as to avoid mistaken access.

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.