Static Context Menus in IE 5.0

With the release of Internet Explorer 5.0, Microsoft has made it possible for you to define your own static context menu items. It’s as simple as adding a new registry key at the following location:

HKEY_CURRENT_USER
    SOFTWARE
        Microsoft
            Internet Explorer
                MenuExt

The default value for the key can be either a URL or a program. An additional key called contexts must also be present. This key contains a binary value that determines to which context menu (Internet Explorer provides several, depending on the circumstances) you want to add the new menu item. The values are:

Context Menu

Value

Default

0x01

Image

0x02

ActiveX Control

0x04

Table

0x08

Selected Text

0x10

Hyperlink

0x20

Get VB Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.