I am trying to send the paste function on another form. I give that window focus and then send this message...
PostMessage(WoWVar.WindowHandle, (uint)WM_KEYDOWN, ((IntPtr)VK_CONTROL), (IntPtr)0x1);
PostMessage(WoWVar.WindowHandle, (uint)WM_KEYDOWN, ((IntPtr)0x56), (IntPtr)0x0);
PostMessage(WoWVar.WindowHandle, (uint)WM_KEYUP, ((IntPtr)VK_CONTROL), (IntPtr)0x0);
I used Spy++ and manually pressed paste and I am sending the same data. The paste works fine but it leaves a trailing 'v' after everything. So if my pasted data was 'PastedData' it would send the message and it would appear like this 'PastedDatav'. I'm not sure how to avoid this?