0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

cscの作法 その410

Posted at

概要

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!!");
		}
	}

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?