I am trying to use keybd_event() to press certain keys through to a remote desktop application. For the simplest test I am simply opening notepad in the remote session, and have the call keybd_event() run on the local computer with the current user focus on notepad.
Unfortunately it does not appear to be sending any input through to remote desktop.
If I run the application on the local computer with a local instance of notepad in focus, it types exactly what I want to type no problem.
Does anyone have any ideas why this won't work? Obviously I can type manually into the remote desktop session.
Thanks
LLKHF_INJECTED
flag: msdn.microsoft.com/en-us/library/windows/desktop/… Maybe then it would register as a hardware event and go through. Though, I'm not sure if that actually is the issue. – Brandon