February 28, 200422 yr 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
February 28, 200422 yr Author Everything (getmessage and windowproc) reacts as a key except the hook itself however the keybd_event () solved the problem.Jos
Create an account or sign in to comment