pywinauto 是否使用 Windows 自动化 API?

Does pywinauto use the Windows Automation API?

我正在阅读文档,但无法确定 pywinauto 是否使用 Windows Automation API。如果是这样,它能否完成 Automation API 可以做的所有事情,或者我是否需要使用 .net 来利用 API 的全部功能?

在此先感谢您!

pywinauto 可以根据您的选择使用 Windows 自动化 API (a.k.a. UI 自动化 API)。它取自使用本机 COM 接口的本机 UIAutomationCore.dll(类似于 UIAComWrapper for .NET 以消除 .NET 特定错误)。

这在Getting Started Guide中都有描述。您只需要使用 Application(backend="uia")。默认后端仍然是 "win32",将在下一个主要版本中更改。