这个错误提示通常是因为你尝试在一个不支持 getitem 方法的控件上使用索引访问。可能是你在使用 pywinauto 的时候,使用了一个不支持该方法的控件对象。

解决该问题的方法是,检查你的代码中是否在不支持 getitem 方法的控件上使用了索引访问,并且避免这样做。你可以使用其他方法来访问控件中的数据,如使用控件的属性或方法来获取所需信息。

pywinauto 错误 The control does not have a __getitem__ method for item access ie ctrlkey so maybe you have requested this in error

原文地址: http://www.cveoy.top/t/topic/bp0A 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录