Intercepting Windows Copy command

UPDATE: Found a library that meets my needs...
http://www.vbaccelerator.com/home/NET/Code/Libraries/Windows_Messages/Responding_to_Clipboard_Change_Notifications/article.asp


I am currently writing a C# application that should run in the background (well, system tray) and detect any time I execute the Copy (or Cut) command in any application.  I would like to be able to detect Ctrl-C, Edit->Copy, Right Click->Copy, etc.

Of course, my application will not have focus...surely there is someway to tie into the OS to do this, though.  Maybe   Any ideas

Maybe I should just have a timer that checks to see if the clipboard has changed every second or so   Eh, I hate polling though...

Thank you very much for any help,

--
Jason Whitehurst



Answer this question

Intercepting Windows Copy command

  • Intercepting Windows Copy command