How to block user input when sending text with SendInput
I'm using SendInput (in C#, using pinvoke) to send text to another appli开发者_开发知识库cation. How can I block the user input so that any text that the user may type when SendInput is working is added after SendInput has finished sending text instead? Currently if the user is typing as the text is sent to the target application, the final result may be inconsistent. Thanks.
It sounds like you're looking for BlockInput?
http://msdn.microsoft.com/en-us/library/ms646290(VS.85).aspx
精彩评论