UI Automation
コメント欄でアドバイスして下さったid:u338stevenさんのおかげで、 一気に保存まで達成。ありがとうございました。前のUWSCでメモ帳保存のUI Automation版 1.メモ帳起動 2.「ああああああ」を書き込む 3.「テスト.txt」でカレントパスに保存 using System; …
前回の問題点。 subFormが取れてない可能性があるため、 ・Thread.Sleep(1000);で取得直前に待ってみた →× ・「AutomationElement」オブジェクトの存在有無を調べるメソッドを軽く調べた →見当たらない……。今回は15分程度しか探せないが、もう少し探せば見つ…
メモ帳での保存時のダイアログの扱いで苦戦中。 AutomationElement.FocusedElementでフォーカスされたダイアログのAutomationElement を取得しようとするも、例外発生して終了。 ・AutomationElementの取得有無未確認 ・ダイアログや子Windowの扱いについて…
UI Automation使ってC#でメモ帳起動~文字入力まで。 using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Au…