[英]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.