そこでRDC Windowsアプリケーションを実行して、詳細をキャプチャしようとしました。
----> Myremotedesktop の接続 ----> rdc で Windows アプリケーションを実行し、値を入力して詳細を取得します(たとえば、ロール番号を入力すると、アドレスの詳細が表示されます) ----> 詳細データをキャプチャし、ローカルに保存しますデスクトップ。
C# コードを使用してこのプロセスを自動化する方法はありますか?
リモートデスクトップ接続できました。UIAutomation を試してみましたが、以下のコードはローカル デスクトップで正常に動作します。
System.Threading.Thread.Sleep(500);
AutomationElement rootElement = AutomationElement.RootElement;
Condition appCondition = new PropertyCondition(AutomationElement.NameProperty, "Untitled - Notepad");
Condition documentCondition = new PropertyCondition(AutomationElement.LocalizedControlTypeProperty, "document");
AutomationElement documentElement = rootElement.FindFirst(TreeScope.Subtree, documentCondition);
documentElement.SetFocus();
SendKeys.SendWait("This is a test of the emergency broadcast system.")
リモートデスクトップでこれと同じことを行うには?