Sending keyboard events to another application in C# that does not handle Windows events

前端 未结 5 1450
深忆病人
深忆病人 2021-02-07 21:10

here is my situation: we are writing an application that must transform Microsoft Kinect coordinates into keyboard and mouse events.

When we need to take control of the

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 21:57

    I think following post should be an answer to your question,

    How do i send keys using a global keyboard hook?

    According to the answer, you have to use following key codes to the SendInput function, http://www.gamespp.com/directx/directInputKeyboardScanCodes.html

提交回复
热议问题