Traceback (most recent call last): File "E:\pycharm\001.py", line 61, in <module> wx.TextControl(SubName=last_msg[:5]).RightClick() File "E:\Python\lib\site-packages\uiautomation\uiautomation.py", line 6580, in RightClick point = self.MoveCursorToInnerPos(x, y, ratioX, ratioY, simulateMove) File "E:\Python\lib\site-packages\uiautomation\uiautomation.py", line 6507, in MoveCursorToInnerPos rect = self.BoundingRectangle File "E:\Python\lib\site-packages\uiautomation\uiautomation.py", line 5907, in BoundingRectangle rect = self.Element.CurrentBoundingRectangle File "E:\Python\lib\site-packages\uiautomation\uiautomation.py", line 6224, in Element self.Refind(maxSearchSeconds=TIME_OUT_SECOND, searchIntervalSeconds=self.searchInterval) File "E:\Python\lib\site-packages\uiautomation\uiautomation.py", line 6475, in Refind raise LookupError('Find Control Timeout({}s): {}'.format(maxSearchSeconds, self.GetSearchPropertiesStr())) LookupError: Find Control Timeout(10s): {SubName: '13592', ControlType: TextControl}
时间: 2023-07-21 22:09:26 浏览: 154
Mac下anaconda中Spyder打开报错Traceback(most recent call last)…问题
5星 · 资源好评率100%
根据你提供的信息,是一个 Python 的错误信息,看起来是在使用 uiautomation 库的时候出错了,可能是在右击一个文本控件时无法找到该控件导致的。建议检查一下代码中是否正确指定了需要右击的文本控件,以及该控件是否存在。同时,可以尝试增加搜索控件的最大时间(maxSearchSeconds)和搜索控件的间隔时间(searchIntervalSeconds),以提高查找控件的成功率。
阅读全文