Nope, it could be any application that puts any type of data into the clipboard. My solution is back a few posts. This is how it works:
In the configuration of section of my program, I have a property that stores the application being monitored, which is the exe filename. When I get a clipboard content changed notification, I find the processid from the owner handle that last put data into the clipboard using GetClipboardOwn er...
User Profile
Collapse
-
I figured it out after doing some more research. Here is the code that I put in the clipboard change event.
IntPtr ownerHwnd = GetClipboardOwn er();
uint processId;
GetWindowThread ProcessId(owner Hwnd, out processId);
Process process = Process.GetProc essById((int)pr ocessId);
Debug.WriteLine (String.Format( "Owner: {0}, processid: {1} Title: {2} Exe: {3}", ownerHwnd.ToStr ing("X8"),...Leave a comment:
-
which application put data into clipboard
Is there a way to find out which application put data into the clipboard. I want my app to respond only when data was put into the clipboard from a specific application. The clipboard notifier code that I am using
No activity results to display
Show More
Leave a comment: