I'm developing an application where I need to make another application copy/cut/paste to the clipboard.
I didn't think this would work, but I tried it and it didn't...
PostMessage(GetForegroundWindow(),WM_KEYDOWN,'C',NULL);
PostMessage(GetForegroundWindow(),WM_KEYUP,'C',NULL);
WM_COPY paste etc. won't work because that only works for text.
I can use the keybd_event() function but I need a way to do this that won't interfere with the users clipboard.
Thanks for any help.
I didn't think this would work, but I tried it and it didn't...
PostMessage(GetForegroundWindow(),WM_KEYDOWN,'C',NULL);
PostMessage(GetForegroundWindow(),WM_KEYUP,'C',NULL);
WM_COPY paste etc. won't work because that only works for text.
I can use the keybd_event() function but I need a way to do this that won't interfere with the users clipboard.
Thanks for any help.