概要
cscの作法、調べてみた。
UIAutomationLib使ってみた。
参考にしたページ。
サンプルコード
class Program {
static void Main(string[] args) {
UIAutomationLib ui = new UIAutomationLib();
Process notepad = Process.Start(@"notepad");
Thread.Sleep(2000);
Console.WriteLine("ok3");
notepad = ui.UpdateTargetProcess("メモ帳");
AutomationElement notepadElement = ui.GetMainFrameElement(notepad);
ui.Keyin(true, notepadElement, "Hello World!!");
}
}
以上。