cluic / wxauto

Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息,简单微信机器人
MIT License
2.76k stars 444 forks source link

微信最新版本3.9.6.33发送消息不了 #135

Open 7victor opened 1 year ago

7victor commented 1 year ago

微信最新版本3.9.6.33发送消息不了

qq752381473 commented 1 year ago

同上 报错如下 raise LookupError('Find Control Timeout({}s): {}'.format(maxSearchSeconds, self.GetSearchPropertiesStr())) LookupError: Find Control Timeout(10.0s): {Name: '输入', ControlType: EditControl}

NecromanAlbert commented 11 months ago

同样问题 怀疑是uiautomation的sendkeys里的self.SetFocus()出了问题 导致在发送时无法定位微信的输入栏

tgoldxx commented 11 months ago

新版微信里的输入框改名了。原来叫“输入“,现在改为了”无名“。

我现在方法是找到 self.EditMsg = self.UiaAPI.EditControl(Name='输入') 改为了 self.EditMsg = self.UiaAPI.ButtonControl(Name='发送文件').GetParentControl().GetNextSiblingControl().GetFirstChildControl()

cluic commented 10 months ago

试下新版本,可下载图片,适用于最新的PC微信3.9.8.15,重写了wxauto,欢迎指出bug