如何用C#模拟按键
How would you go about sending key commands or keypresses of particular keys in C#, specifically numbers.
For instance I would like to simulate typing "512" programatically.
Possibly Related: C# SendKeys.Send
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您要使用 inputsimulator 您可以这样做:
If you would use inputsimulator you could just do:
整型变量没有 UI,因此不能有按键。
An integer variable doesn't have a UI, so can't have a keypress.
事件是针对视觉对象的,而不是针对变量的
Events are for visual objects, not for variables