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

前端 未结 5 1452
深忆病人
深忆病人 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:48

    You need to pInvoke Winapi sendmessage.

    http://msdn.microsoft.com/en-us/library/ms644950(v=vs.85).aspx

    http://pinvoke.net/default.aspx/user32.SendMessage

    This is what I'm using. It works but you have to read a little bit about it. This is very powerful method.

提交回复
热议问题