我无法使用 AutoIt Window Information Tool 识别 Windows 应用商店应用程序的 UI 控件。以标准应用程序计算器 (Windows 10) 为例:
如您所见,它不显示按钮 8
的信息。我尝试了 x86 和 x64 版本。
如何与 Windows 应用商店应用程序交互?对于传统桌面应用程序,AutoIt 按预期工作。
最佳答案
不可能,AutoIt 开发者没有计划支持 UI Automation API。您可以在 Windows SDK 中找到 Inspect.exe
并在 UIA 模式下运行它,以与 AutoIt Info 工具进行比较。
还有一些其他工具支持 UIA(TestStack.White (C#)、Winium.Desktop (C#) 以及其他语言上的一些直接 UIA 包装器,例如 Python 上的 pyuiautomation)。 pywinauto 0.6.0添加了 MS UI 自动化支持。
UIA 对 AutoIt 的支持; 24 Apr 2009 AutoIt forum thread 。计划可能已更改,但这是 “AutoIt WPF 支持”
Google 搜索的首要结果。
关于user-interface - 与 Windows 应用商店应用程序的 UI 控件交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37130985/