• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Peter Primrose
Ranch Hand
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1923
Linux Postgres Database Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Primrose:
Is this doable?

If MS rewrites Outlook in Java and opens the source-code: Yes.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic