How to connect the global PASTE event?

I am developing software that needs to know when PASTE EVENT occurs (via the context menu or ctrl + V) (only for files / directories). More or less, something like TeraCopy or Copy Handler. When you copy and then paste, TeraCopy processes the bonding.
I know more or less how to capture the COPY EVENT event, you only need to install ClipboardViewer, and you will catch all the global COPY EVENTS (actually called WM_DRAWCLIPBOARD). You can find out here: http://www.radsoftware.com.au/articles/clipboardmonitor.aspx But ClipBoardViewer does not provide you with the opportunity to catch the PASTE event.

+6
c # events hook
source share
3 answers

The process of changing the state using the "Insert" is specific to individual applications, so there is no magic way to find out if the state of the application has changed after accessing the buffer.

The best thing you can do is determine if the application was extracting data from the clipboard. Again, there is no way to find out what the application has done with this data. It is like someone has opened their entrance, not knowing where they went, if anywhere.

If you want to try this, you can do something like connecting the GetClipboardData function. For information on how to track system-wide APIs, check out the samples at Micrsoft Detours - http://research.microsoft.com/sn/detours

+1
source share

But software like Teracopy and Copy Handler detects an insert event. I need almost the same thing to detect when a file / directory is inserted.

-one
source share

In fact, this software works not only for ctrl + v, but also when you click on a groove in the context menu (right-click).

-one
source share

All Articles