How to send keystrokes/messages to Windows 7 with C++ and Windows API?

前端 未结 3 1041
梦如初夏
梦如初夏 2021-01-07 02:37

Is it possible for a program to send keystrokes or messages to Windows 7 (the operating system it\'s running on) to simulate the effect of a user physically pressing the Win

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 02:49

    You can do any simulated input using SendInput, however, you are bound by the application integrity level (that is, you cannot inject input into applications that have a higher level than yours).

提交回复
热议问题