[英]Pressing a key in c#
我正在开发一个程序,该程序将搜索正在运行的程序并自动按一个按钮,但是如何从代码中按键盘上的Enter键(发送Enter键的命令)? 谢谢。
您可以使用SendKeys 。
请查看此CodeProject教程以获取详细的操作方法。
[英]a custom event for pressing the 'Enter key' in C#
[英]How to detect tab key pressing in C#?
[英]C# pressing key breaks movement of an object
[英]C# detect pressing Windows key
[英]Delay between key pressing in C#
[英]trigger a keyup without pressing a key C#
[英]C# End image movement by pressing key
[英]Error when pressing the Enter key, C# console
[英]Refreshing page/web-part on pressing the “Escape” key in C#?
[英]Remove delay when pressing a key in serial communication in C#
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.