How do I send a keystroke of a function key (e.g. the F5 key) to another windows program?
Thanks.
How do I send a keystroke of a function key (e.g. the F5 key) to another windows program?
Thanks.
You should be ok doing this with SendMessage() and using the WM_KEYUP and WM_KEYDOWN messages. The tricky part would be getting the HWND of the other window. To do that I'd just use EnumWindows().
do you mean your aplication is sending keystrokes or is it receiving keystrokes?
i'm not sure but dont the applications need to have the same parent or
acces rights for that?
The program I am writing is sending a keystroke to the other application, such that the other application reacts as if I had manualy pressed the key.Originally Posted by pode
oh you're making something like windows "on screen keyboard" program?
it should be possible sending it with sendmessage() to the receiving applications handle.