[问题] 请问sendkeys在指定档案中使用

楼主: dedicationsh (ddd)   2015-08-27 15:52:33
我开了一个记事本
我有办法设一个click botton然后我点一下
他就让个记事本多一个讯息吗
一直用不出来 附上程式码
private void button1_Click_1(object sender, EventArgs e)
{
Process notePad = new Process();
// FileName 是要执行的档案
notePad.StartInfo.FileName = @"C:\Users\JA\Desktop\test.txt";
notePad.Start();
}
private void button3_Click(object sender, EventArgs e)
{
SendKeys.Send("
作者: johnpage (johnpage)   2015-08-27 22:21:00
少 FindWindow和SetForegroundWindow目标不是正在使用的窗户

Links booklink

Contact Us: admin [ a t ] ucptt.com