【问题标题】:Interact with UI controls of Windows Store apps与 Windows 应用商店应用的 UI 控件交互
【发布时间】:2016-09-04 23:40:31
【问题描述】:

我无法使用 AutoIt Window Information Tool 识别 Windows 应用商店应用的 UI 控件。以标准应用计算器为例(Windows 10):

如您所见,它没有显示按钮8 的信息。我尝试了 x86 和 x64 版本。

如何与 Windows 应用商店应用交互?对于传统的桌面应用程序,AutoIt 可以按预期工作。

【问题讨论】:

    标签: user-interface windows-store-apps windows-10 ui-automation autoit


    【解决方案1】:

    这是不可能的,AutoIt 开发人员没有计划支持 UI 自动化 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 support" Google 搜索的最佳结果。

    【讨论】:

      【解决方案2】:

      为了在Win10中使用Autoit Window info tool,你应该使用64位版本的exe。

      Au3Info_x64.exe

      常见位置是C:\Program Files (x86)\AutoIt3\Au3Info_x64.exe

      【讨论】:

      • 这对商店应用程序没有帮助,因为它们没有具有非空 hwnd 的经典本机窗口。只有 UI 自动化 API 及其包装器可以提供帮助。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多