从 ClassName 为 Chrome_RenderWidgetHostHWND 的元素初始化 UIautomation 树。可访问性见解
Initialize UIautomation tree from an element whose ClassName is Chrome_RenderWidgetHostHWND. Accessability Insights
我需要使用 windows OS 中另一个程序的“UI自动化”技术获取 UI 元素。
一些程序有“chrome-like”浏览器来呈现内容。
这些方法是获取元素(如 c# AutomationElement.FromPoint / FindAll)return 具有 ClassName“Chrome_RenderWidgetHostHWND”和名称如“Chrome Legacy Window”的浏览器元素。但我需要那个浏览器中的内容元素。
我发现“Accessibility Insights”程序可以做到!
- 运行 应用程序,例如“Microsoft Teams”
- 运行“辅助功能洞察”
- 将鼠标移到“Microsoft Teams”上,我们得到“Chrome Legacy Window”
- 在目标程序(“Microsoft Teams”)上单击鼠标 (left/right) 后会引发重建 UI 树
- 然后UI自动化技术可以获取浏览器中的所有内部UI元素。
“Accessibility Insights”源代码是https://github.com/microsoft/accessibility-insights-windows
我非常仔细地研究了它,但没有找到提供重建(或初始化?)内部 UI 元素的代码。
谁能帮帮我?
我应该做什么来赢得我的任务 - 在 windows OS?
上的另一个程序中获取 chrome 类浏览器中的内部 UI 元素
如果你读到了最后,谢谢你
Windows 的 Accessibility Insights 不直接与 UI 自动化系统交互。它基于 Axe.Windows (Source code), which queries and exposes the UI Automation properties. In the case you're describing, Axe.Windows is walking the UI Automation tree in response to a UIA_AutomationFocusChangedEventId message from the UI Automation framework. That notification gets handled by the onFocusChangedEventForSelectingElement method of FocusTracker.cs。希望这足以让您入门。
--Dave Tryon(无障碍洞察团队)
我需要使用 windows OS 中另一个程序的“UI自动化”技术获取 UI 元素。 一些程序有“chrome-like”浏览器来呈现内容。 这些方法是获取元素(如 c# AutomationElement.FromPoint / FindAll)return 具有 ClassName“Chrome_RenderWidgetHostHWND”和名称如“Chrome Legacy Window”的浏览器元素。但我需要那个浏览器中的内容元素。
我发现“Accessibility Insights”程序可以做到!
- 运行 应用程序,例如“Microsoft Teams”
- 运行“辅助功能洞察”
- 将鼠标移到“Microsoft Teams”上,我们得到“Chrome Legacy Window”
- 在目标程序(“Microsoft Teams”)上单击鼠标 (left/right) 后会引发重建 UI 树
- 然后UI自动化技术可以获取浏览器中的所有内部UI元素。
“Accessibility Insights”源代码是https://github.com/microsoft/accessibility-insights-windows 我非常仔细地研究了它,但没有找到提供重建(或初始化?)内部 UI 元素的代码。
谁能帮帮我? 我应该做什么来赢得我的任务 - 在 windows OS?
上的另一个程序中获取 chrome 类浏览器中的内部 UI 元素如果你读到了最后,谢谢你
Windows 的 Accessibility Insights 不直接与 UI 自动化系统交互。它基于 Axe.Windows (Source code), which queries and exposes the UI Automation properties. In the case you're describing, Axe.Windows is walking the UI Automation tree in response to a UIA_AutomationFocusChangedEventId message from the UI Automation framework. That notification gets handled by the onFocusChangedEventForSelectingElement method of FocusTracker.cs。希望这足以让您入门。
--Dave Tryon(无障碍洞察团队)