-
Picking up CTRL + C
Sorry to be brief, but how can I get my program to run a function when the user hits CTRL + C, and thus not have to constantly monitor the clipboard for change ? I know nothing whatsoever about Windows messages and such, but I've been told I need to use a certain WM_something, but have no idea which or how.
Thanks for any help.
-
Interesting question. I want to know this too please, :).
trainee
-
-
Thanks a bunch codeplug, but the second link isn't valid.
trainee
-
-
Thanks for your reply, Codeplug... Do you have any quick source codes showing how a program can run a function when CTRL + C has been pressed ? I'm still having trouble with this and have no idea where to start. Sorry :(
Thanks.
-
An application is free to implement cut/copy/paste on any key-stroke they want.
What about "Edit menu -> cut/copy", or "right-click -> cut/copy" functionality?
That's why I posted the link to WM_PASTE.
Read the article on Win32 hooks, specifically for WH_GETMESSAGE so you can monitor for WM_PASTE messages in the system.
When you detect a WM_PASTE message you can analyse the contents of the clipboard and make modifications before WM_PASTE reaches it's target window.
There are examples of using hooks on MSDN.
gg