Let’s assume that we’ve got 2 windows processes ,
Process A is the sender, and Process B is the receiver.
Process B is running a classic Win32 API events loop
How do I generate and send mouse and keyboard events from process A to B ?
PostMessage. If you want to simulate input events for the whole operating system, then
SendInput might be interesting.
Answered By – Michael