Win32 equivalent of .net SendKeys

前端 未结 3 1033
长情又很酷
长情又很酷 2021-01-14 03:27

I am designing a system that reads a gesture from Kinect and make some actions. I am trying to include the system to be able to send HotKey to an application. My system is w

相关标签:
3条回答
  • 2021-01-14 03:40

    In WIN32, SendKeys is called SendInput:

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

    It can also simulate mouse movements, etc.

    0 讨论(0)
  • 2021-01-14 03:47

    The native equivalent is keybd_event

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

    0 讨论(0)
  • 2021-01-14 04:01

    If there are multiple applications, on Vista and higher, UAC integrity levels may prevent applications from sending/receiving Windows messages this way. You may need to call ChangeWindowMessageFilter, ChangeWindowMessageFilterEx functions to enable message-reception in higher elevated process.

    0 讨论(0)
提交回复
热议问题