SendMessageW pInvoke to send keys to given form HELP

alexus

Member
Joined
Jan 16, 2010
Messages
5
Programming Experience
1-3
Hey all I'm trying to do something like Send Keys but through unmanaged code. Basically I need to be able to send QWEERY key stocks to given window. SendKeys work well but If i loose focus everything becomes a mess (yes i can bring form to front and set ficus before each keystroke but it is flimsy)
So I my friend recomended me SemdMessageW (that he is using in his C++ projects) but im not sure how to set it up for sending regular key stocks. Can some one help me out?

I found this link (pinvoke.net: SendMessage (coredll)) but i don't know how to make it work w/ other keys and i don't really get why they declare 2 extra classes?
 
Back
Top