Win32.net SendKeys Equivalent

I am designing a system that reads a gesture from Kinect and performs some actions. I am trying to turn on the system to send HotKey to the application. My system writes in C ++, but the user interface is in C ++. Net. I was able to use SendKeys from part of the user interface, and it really works.

Is there a Win32 equivalent so I can use it on my system?

Thanks in advance!

+4
c ++ winapi sendkeys
Jul 27 '11 at 1:01
source share
3 answers

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.

+7
Jul 27 2018-11-11T00:
source share

If there are multiple applications in Vista and above, UAC integrity levels can prevent applications from sending / receiving Windows messages this way. You may need to call ChangeWindowMessageFilter , ChangeWindowMessageFilterEx to enable the perception message in a higher process.

0
Jul 27 2018-11-11T00:
source share
-one
Jul 27 2018-11-11T00:
source share



All Articles