How to implement SendKeys in C/C++
Posted on 1997-04-04
I'm developing a 16-bit Windows app. I did a prototype in Visual Basic and used the SendKeys() function to send keystrokes to other applications. Now I'm writing the real product using Visual C++ V1.52 and can't figure out how to do the SendKeys. I've tried sending WM_CHAR, WM_KEYUP, WM_KEYDOWN messages without luck.
In particular, I'm putting a metafile on the clipboard and trying to paste it into another application. In the prototype I just called SendKeys to send the Ctrl-Insert keystroke and it worked like a charm.
Can anyone please help me out????