Console.WriteLine("请输入:");
Thread thread = new Thread(()=>{
SendKeys.SendWait("Hello World");
SendKeys.SendWait("{ENTER}");
});
thread.IsBackground = true;
thread.Start();
string str = Console.ReadLine();
Console.WriteLine("你输入了{0}",str);
Console.Read();
模拟按键小测试
最新推荐文章于 2024-02-27 11:51:44 发布