the SendInput() works fine for a focus window. but when the window loses the focus, the SendInput() can be used to another window.
so how can i choose the window target for use the SendInput()?
Synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message. The keyboard driver's interrupt handler calls the keybd_event function.
That mentioned message is send to the focus window. But you may send it to the other window too. So a combination SendInput() and PostMessage() may help.
works fine. but, like, i said, only with window focused :(
"That mentioned message is send to the focus window. But you may send it to the other window too. So a combination SendInput() and PostMessage() may help."
how i do that combination? i don't see any data or on struture with SendInput() for that :(