Send keys without SendMessage and PostMessage

两盒软妹~` 提交于 2019-12-06 14:52:10

The official way to fake input does not involve sending or posting Windows messages directly. Instead you are meant to call SendInput.

When you use SendInput it is indistinguishable from actually pressing the real keys. When you call SendInput to fake keyboard input, the system ultimately posts messages to the message queue of the foreground thread that created the window with the keyboard focus.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!