Create custom context menu item for text selection

Discussion in 'Microsoft Windows 2000 Registry' started by Monty, Feb 13, 2007.

  1. Monty

    Monty Guest


    I'd like to add a context menu item that appears in the context menu for
    selected text inside most applications. For instance, if you right-click on
    text in notepad, in the RUN combo-box, or even in the text box of the "Open
    URL" dialog in QuickTime, you will see that all of these "text receptacles"
    get their context menu from a common place (they all share the exact same
    commands in the same order, including "Right to left Reading order", "Show
    unicode control characters", "Insert Unicode control character"). So
    certainly this can be manipulated from somewhere? I would like to create an
    item for this menu that is enabled when activated on some highlighted text,
    then I would like to process that text in a script file (VBS, JS, whatever).
    For instance, if the highlighted text is a valid URL, open it in a browser.
    If it's an email address, start an email. If it's a word, open it up in
    browser and send it to Can anyone tell me how to:

    A) add the menu item so it appears on the text context menu (not the context
    menus for files, directories, etc, just text)
    B) send the highlighted text to a VB script as a parameter (for instance,
    just through it up in a msgbox, I can take it from there)
    C) BONUS: if no text is highlighted, get the entire text line it was clicked

    I've seen a lot about creating custom context menu items in IE or other
    browsers, and also about creating custom context menus for certain
    applications, but I would like this to apply to text in almost any
    application (for instance, text in notepad, text in the RUN window combo
    box, whatever). I know there are applications that override with their own
    context menus and I don't hope to battle them, just those that use the
    standard context menu. I know it's possible to customize the context menus
    for file and folders (like the custom WinZip menu item), so I'm hoping it's
    also possible to extend this one.

    Thanks in advance!

    Monty, Feb 13, 2007
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. The Masked Crusader

    Re: disable context menu at start button

    The Masked Crusader, Jun 25, 2003, in forum: Microsoft Windows 2000 Registry
    The Masked Crusader
    Jun 25, 2003
  2. Fred K.

    Add "new folder" to right click context menu in file explorer...

    Fred K., Jul 2, 2003, in forum: Microsoft Windows 2000 Registry
    Jim Byrd
    Jul 2, 2003
  3. Bruce Hensley

    create submenu on context menu in Windows Explorer

    Bruce Hensley, May 25, 2005, in forum: Microsoft Windows 2000 Registry
    Bruce Hensley
    May 25, 2005
  4. lushdog

    Registry Problem, custom context menu handler.

    lushdog, Mar 27, 2006, in forum: Microsoft Windows 2000 Registry
    Thota Umesh
    Apr 19, 2006
  5. Helge V. Larsen

    How to add a new item to the context menu of folders

    Helge V. Larsen, Nov 9, 2006, in forum: Microsoft Windows 2000 Registry
    Nov 14, 2006