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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System hook for Copy/Paste commands 1

Status
Not open for further replies.

BogdanMBM

Programmer
Aug 6, 2003
213
RO
Hie!
I was wondering if there is a way (API call) to make a
system hook for Copy/Paste commands, so that I'll be notified if a Copy or Paste command on the computer.
I need it to be a system wide hook.
Any ideas?
Thanks!

Bogdan.
 
To be more exact: i don't want just to monitor the keyboard for various combinations of keys to issue a Copy/Paste command. What i wanna do is actualy monitor the clipgoard using API, so that I can know when a Copy/Paste command has been issued, no mather how (keys combination, right click menu, etc.)

Thanks!

Bogdan.
 
For notification about clipboard copy operation, you need to register a window as a Clipboard Viewer. A clipboard viewer window receives notifications from the system whenever the contents of clipboard are changed. See thread222-576513 for an example of clipboard viewer application.

As far as clipboard paste operation is concerned, there is no system-wide hook or any other mechanism that may notify you of this event. I am not hopeful that Windows API may help you for that.
 
Thanks, Hypetia!
I'll trie that. And a star from me!

Bogdan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top