Sign in to follow this  
jcboliveira

send a key

Recommended Posts

I'm sure I miss something. I'm trying to send keys to FS so I put this code in my gauge.hWnd=GetForegroundWindow();PostMessage(hWnd,WM_KEYDOWN,VK_ADD,0x1);Just doesn't work. Even setup a keyboard hook to get the keys. The hook is working with the keyboard but doesn't get the message.ThanksJos

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Everything (getmessage and windowproc) reacts as a key except the hook itself however the keybd_event () solved the problem.Jos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this