LTEnjoy / easyChat

微信助手(非web微信版):定时发送信息;群发信息;自动回复等
558 stars 84 forks source link

求助 #62

Open Davidyzb opened 2 months ago

Davidyzb commented 2 months ago
微信图片_20240727213339

up您好,我想实现参考33的自动回复功能,但是失败了,在查看源代码的时候这个.chats没有被vscode识别是什么原因呢,求解

LTEnjoy commented 2 months ago

你好,你可以在wechat_locale.py里面看到相关的定义。没有被vscode识别的原因是因为这里面的属性并不是被显式定义的,而是通过setattr的方式定义的。 image

Davidyzb commented 2 months ago

谢谢up!但是收到信息还是没有自动回复,vscode也没有任何报错,能打开微信,但是没有下一步自动操作了。

Davidyzb commented 2 months ago

Traceback (most recent call last): File "c:\Users\yangzhanbo\Desktop\easyChat-main\easyChat-main\ui_auto_wechat.py", line 446, in wechat.get_contact("文件") File "c:\Users\yangzhanbo\Desktop\easyChat-main\easyChat-main\ui_auto_wechat.py", line 94, in get_contact click(search_box) File "c:\Users\yangzhanbo\Desktop\easyChat-main\easyChat-main\ui_auto_wechat.py", line 28, in click x, y = element.GetPosition() File "F:\anaconda\envs\easyChat\lib\site-packages\uiautomation\uiautomation.py", line 6486, in GetPosition rect = self.BoundingRectangle File "F:\anaconda\envs\easyChat\lib\site-packages\uiautomation\uiautomation.py", line 5906, in BoundingRectangle rect = self.Element.CurrentBoundingRectangle File "F:\anaconda\envs\easyChat\lib\site-packages\uiautomation\uiautomation.py", line 6223, in Element self.Refind(maxSearchSeconds=TIME_OUT_SECOND, searchIntervalSeconds=self.searchInterval) File "F:\anaconda\envs\easyChat\lib\site-packages\uiautomation\uiautomation.py", line 6474, in Refind raise LookupError('Find Control Timeout({}s): {}'.format(maxSearchSeconds, self.GetSearchPropertiesStr())) LookupError: Find Control Timeout(10s): {Depth: 8, Name: '搜索', ControlType: EditControl}

LTEnjoy commented 2 months ago

报这个错是因为没有找到搜索框,你确认一下你安装的各个库的版本是不是和requirements里一致呢? image