开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜