重庆熊猫 Loading

Winforms模拟键盘输入

private void button1_Click(object sender, EventArgs e)
{
	this.textBox1.Focus();
	//模拟键盘输入字符
	SendKeys.Send("300");
	//模拟键盘输入Backspace键
	//SendKeys.Send("{BACKSPACE}");               
	SendKeys.Flush();
}
posted @ 2022-12-23 10:52  重庆熊猫  阅读(25)  评论(0编辑  收藏  举报