Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clipboard

Status
Not open for further replies.

Lfelipe

Programmer
Nov 6, 2002
3
BR
I want to develop an application that should have the following behavior:

(1) The user highlights some text in another application (Microsoft Word for instance);

(2) He presses a key combination (shift + D for instance);

(3) The highlighted text is copied to the clipboard and my application is started;

(4) The content of the clipboard (the highlighted text) is pasted in a Edit or Memo component from my application.

Does anyone know if it is feasible ? Any Ideas ?

Thank u all,
L. Felipe
 
Yes, this is feasable but maybe not the way you want. If you want a program to run at a certain key combination, I beleive it has to already be running or the calling program , Word, for example, has to know how to start the program with the key combination.

For example, my favorite editor, Multi-edit, has a key combination of Ctrl+Alt+M. If Borland is running and I press this combination, Multi-Edit starts up and shows me the C++ code for the app I'm working on. If Multi-Edit is running and I press this combination, Borland starts up.

If you created your app to run hidden in the background or as a service it could detect the key combination and start up.

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top