M
Monty
Hi,
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 dictionary.com. 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
on
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
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 dictionary.com. 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
on
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