问题描述
我想模拟外部程序的键盘单击.我尝试了SendMessage,PostMessage,SendKeys,但是它们没有将密钥发送到一个特定程序.因此,我想尝试使用SendInput,并且为 SendInput - http://inputsimulator.codeplex.com/
I want to simulate keyboard click for a external program.I've tried SendMessage, PostMessage, SendKeys but they do not send the key to one specific program. So i wanted to try SendInput and i have downloaded a good wrapper for SendInput - http://inputsimulator.codeplex.com/
我已将程序集添加到我的项目中,但我仍无法开始使用任何功能...
i have added the assembly to my project but i cannot yet start using any of the functions...
我该怎么办?我应该添加什么使用"?
What i have to do?What "Using" should i add?
推荐答案
我相信您需要
Using WindowsInput;
如果不是,您可以在对象浏览器中查看它并查看名称空间.只需右键单击解决方案资源管理器中的引用,然后单击浏览.
If that's not it, you can view it in the Object Browser and see the namespace. Just right click the reference in solution explorer and click browse.
这篇关于C#InputSimulator包装器-如何使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!