WM_COPY Not working in other process?
Posted on 2003-03-26
PostMessage(getForeGroundWindow, WM_COPY , 0, 0);
PostMessage(getForeGroundWindow, WM_CLOSE , 0, 0);
The WM_CLOSE close any active application,
but how come WM_COPY doesnt copy the selected text at all ??
And for sure, WM_PASTE doesnt work to! Help me please!
What I want is to copy the selected text when you hit like Control+1, ( that part is done and is fully working ).. The Copy to Clipboard thing is missing..
I could set the Selected Text into a var, that would be a lot better, but i think its really harder than simply copy the selectedtext to clipboard, and then assign it to a var..
If you have any suggestions, feel free to reply:D
Getting the current selected text without using the ClipBoard would be very apreciated, thx!