Create a custom listing in all applications context menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Douglas

    Create a custom listing in all applications context menu

    Hi community,

    I would like to add a new custom menu item to the right click context menu's
    in notepad and the cmd shell. The same context menu that displays edit,
    paste, etc. Example, someone highlights a name, right clicks on it and
    selected an option to "Search Database" and my C# code executes.

    Is there a means to my end? I'm having a hard time finding any resources.

    Thanks,
    Jay


  • thomasnguyencom

    #2
    Re: Create a custom listing in all applications context menu

    On Nov 12, 9:26 am, "Jay Douglas" <j...@jaydougla s.REMOVEIFNOTSP AMcom>
    wrote:
    Hi community,
    >
    I would like to add a new custom menu item to the right click context menu's
    in notepad and the cmd shell.  The same context menu that displays edit,
    paste, etc.  Example, someone highlights a name, right clicks on it and
    selected an option to "Search Database" and my C# code executes.
    >
    Is there a means to my end?  I'm having a hard time finding any resources.
    >
    Thanks,
    Jay
    I'm not sure you can add a context menu item to notepad or any other
    application.

    You might be better off creating a shortcut key that executes your
    "Search Database" with the contents in the clipboard (after you do a
    right-click, copy in notepad).

    Good luck,
    -tom

    Comment

    • Jay Douglas

      #3
      Re: Create a custom listing in all applications context menu

      Thanks for your help guys, this one has "Outsource Me" written all over it.
      I'm sure a C++ developer will have a much easier time getting the system
      wide hooks going.

      "Michael B. Trausch" <mike@trausch.u swrote in message
      news:2008111210 5811.6ad976d0@z est...
      On Wed, 12 Nov 2008 08:26:06 -0700
      "Jay Douglas" <jay@jaydouglas .REMOVEIFNOTSPA Mcomwrote:
      >
      >I would like to add a new custom menu item to the right click context
      >menu's in notepad and the cmd shell. The same context menu that
      >displays edit, paste, etc. Example, someone highlights a name, right
      >clicks on it and selected an option to "Search Database" and my C#
      >code executes.
      >>
      >Is there a means to my end? I'm having a hard time finding any
      >resources.
      >
      You may be able to create a "hook" into the Win32 API. I am not sure
      if you can do this _fully_ from managed code or not. Here is a
      starting point for your research, though:
      >

      >
      --- Mike
      >
      --
      My sigfile ran away and is on hiatus.

      >

      Comment

      Working...