System.Windows.Automationを使用して、グループボックスのラベルからいくつかのUIコントロールテキスト値を取得しています。探しているコントロール名を取得するためにspy++を使用しようとしています。
AutomationElement Root = AutomationElement.RootElement;
AutomationElement MainForm = Root.FindFirst(TreeScope.Descendants,new PropertyCondition(AutomationElement.AutomationIdProperty,"control name im looking for"));
私が探しているものを表す値は何ですか?たとえば、次のように変更します... ... AutomationIdProperty、 "Window 00031BB0"));
spy++によって提供されるすべての情報が実際に何を表しているのかわかりません。
助けてくれてありがとう!