Open zyh530 opened 2 years ago
UIautomation 2,0,16 也手动替换了py文件。 在win7下,pyhton3.7 仍然报错 item 2 in argtypes passes a union by value, which is unsupported. Can not load UIAutomationCore.dll. 1, You may need to install Windows Update KB971513 if your OS is Windows XP, see https://github.com/yinkaisheng/WindowsUpdateKB971513ForIUIAutomation 2, you need to use an UIAutomationInitializerInThread object if use uiautomation in a thread, see demos/uiautomation_in_thread.py
UIautomation在python3.7.6、3.8.1等部分版本用不了,我之前用的3.8.1跟你报的一模一样的错,换成python3.6.10去运行就解决了
更新一下uiautomation包 或者在这里手动下载替换掉原本的uiautomation.py