C#
Detect wanneer gekopieerd is
[DllImport("User32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr SetClipboardViewer(IntPtr hWndNewViewer);
//Basically you register your app as a clipboard viewer using
_ClipboardViewerNext = SetClipboardViewer(this.Handle);
and then you will recieve the WM_DRAWCLIPBOARD message, which you can handle by overriding WndProc:
protected override void WndProc(ref Message m)
{
switch ((Win32.Msgs)m.Msg)
{
case Win32.Msgs.WM_DRAWCLIPBOARD:
// Handle clipboard changed
break;
// ...
}
}