gpt4 book ai didi

python - pywinauto 使用 Windows 自动化 API 吗?

转载 作者:太空宇宙 更新时间:2023-11-03 20:58:12 28 4
gpt4 key购买 nike

我正在阅读文档,但无法弄清楚 pywinauto 是否使用 Windows Automation API或不。如果是这样,它是否可以完成自动化 API 可以完成的所有操作,或者我是否需要使用 .net 来利用 API 的全部功能?

提前非常感谢您!

最佳答案

pywinauto 可以根据您的选择使用 Windows 自动化 API(又名 UI 自动化 API)。它取自使用 native COM 接口(interface)的 native UIAutomationCore.dll(类似于 .NET 的 UIAComWrapper,以消除 .NET 特定错误)。

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

关于python - pywinauto 使用 Windows 自动化 API 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55873524/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com