wood burning stoves 2.0*
The moose likes Java in General and the fly likes right click on a word anywhere on the screen - & have MY option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "right click on a word anywhere on the screen - & have MY option" Watch "right click on a word anywhere on the screen - & have MY option" New topic
Author

right click on a word anywhere on the screen - & have MY option

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi all,

For efficiency issues I wonder how can one right click on any word on the screen and get an option set by different application.

I mean, if you'll right click on THIS word, you'll get the options (back, forward etc) what if I would like to add the option...'Show Message' and when clicked the system will do something (JOptionPane.."Hello")

Is that possible? If so, does anyone know where to start?
Thanks
Peter
A. Wolf
Ranch Hand

Joined: Sep 28, 2003
Posts: 57
If I understand this correctly, you want to add an option to a right click menu of another application.
example: I'm running firefox and you want to add an option to my right click menu that displays "Show Message" with some action.

I would look for an add-on for your browser sort of an extention or script that lets you add menu items if that exists, because you can't create a java program to modify or "hack" another program. The feature of adding a menu item must be built in to the application that will host the new item.

On the other hand if you were writing an applet you can define your own right click menu and insert whatever you like. Since the applet is run in a browser you'd see your menu in that browser application.
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
I�m looking for something associated with outlook � when the use right clicks a word he can have an option from the application. To be more specific, say the user received an email with the following message:

Dear Joe,
We are ok to go with contract 773984221012 please send us the papers.

Now, if the user simply right clicks the contract�s number, the system should detect that the number is associated with the software and provide the options of how to continue (instead the user copy-paste it to the program)

Is this doable?
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Originally posted by Peter Primrose:
Is this doable?

If MS rewrites Outlook in Java and opens the source-code: Yes.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: right click on a word anywhere on the screen - & have MY option
 
Similar Threads
can't get input stream from internet connection
Edit Post !
Manipulating a BufferedImage for a dpi related problem....
open file
spaces while populating using s:iterator