Git Product home page Git Product logo

easychat's Issues

设置定时发送消息闪退

普通的发送消息没有问题。定时发送消息时,添加时间没有问题,点击【开始定时】会立即闪退
image
image
64 位操作系统, 基于 x64 的处理器,Windows 10 专业版

怎么知道微信客户端的界面结构

我想试着优化一些细节,比如,当前聊天窗口如果已经是我想要的窗口,就不再进行搜索
也想着试着开发一下获取微信群聊中群成员信息(比如名字)的功能
但苦于不清楚微信的界面结构,实现起来很困难

群发一千多人发现的问题

群发多人功能(7.22的版本),发送的内容是“一段文字+一张图片”,运行过程中有下面几种异常的情况:1、没收到消息;2、只收到文字或图片;3、重复(2、3次)收到文字或/和图片

发消息期间我没碰过电脑,整天耗时还是比较长的,发了大半天吧(三个月前使用的,记不清细节了,今天突然想到上来提个issues……)

press_enter貌似会失灵

尝试用最新版3.9.5.73微信,调用到press_enter失败了。
一直timeout。
但是用你给的gui.exe是可以的。
是我哪里用错了嘛。

运行时闪退

选择wechat.exe的运行路径,编辑好消息,点击发送按钮时,会卡顿一会,然后闪退。

环境 Win10

运行UI代码的时候貌似有问题

您好,我运行您的exe文件程序正常,但是我想在运行的时候加一个姓氏的前缀,于是我运行您的wechat_gui.py,按照同样的方法,发现发送按钮没有点击响应。
我猜测或许是win32clipboard版本问题,您能提供一下当前您的pywin32的版本号么?
以及,如果可能的话,可否维护一个requirement.txt呢?
万分感谢您的支持!

求教

能否改成可以一口气添加多个用户的功能呀~
比如我输入 张三,李四,王五
直接就可以给
张三
李四
王五
而不需要我一个一个打进去……因为本地没有那些包……我不确定打包是否成功了

当 set_auto_reply() 列表含有置顶聊天时,check_new_msg() 会重复发送回复消息

之前的 thread 请见 #33

问题复现:

使用 commit 588f9fc,运行这条示例代码,假设聊天界面有 [A, B, C] 三个聊天,设 auto_reply_names = [A],如果 A 位于当前聊天窗口的第一条,代码会重复发送回复消息

(更简单的复现方法是只设定 A 为置顶聊天)

这似乎是逻辑上的 bug,如果 auto_reply_names = [A],check_new_msg() 里面的 first_name 和 last_name 都会等于 A,这时双击聊天按键,第一条显示的还是 A,不论 A 是否有新消息,if item.Name in self.auto_reply_contacts 这条就都会被判中,发送回复消息。

一个临时的 workaround 是置顶一个不在 auto_reply_names 列表里的聊天窗口,这样双击聊天返回最上方时就能确保不会读到列表里面的项

请教ui_auto_wechat.py里调用send_file()的问题

我尝试调用send_file()发送图片,发现剪切板是空的,无法发送空白消息
如果使用wechat_gui.exe操作是正常的
使用wechat_gui.py也会出现剪切板有图片,但发送的时候还没粘贴上因此无法发送空白消息的情况

[已解决]显示发送失败

系统是windows 10 微信版本 3.9.6.33
不管怎么测试都显示 发送失败!请检查内容格式或是否
有遗漏步骤!
是否不支持这个微信版本呢
20230901211254

问题反馈

wechat_gui中

定时发送子线程类

class ClockThread(QThread):
def init(self):
super().init()
# 是否正在定时
self.time_counting = False
# 发送信息的函数
self.send_func = None
# 定时列表
self.clocks = None

def __del__(self):
    self.wait()

def run(self):
    while self.time_counting:
        localtime = time.localtime(time.time())
        hour = localtime.tm_hour % 24
        min = localtime.tm_min % 60

        for i in range(self.clocks.count()):
            **clock_hour, clock_min = self.clocks.item(i).text().split(" ")**//有误,三输入,应该为clock_hour, clock_min,content_times

            if int(clock_hour) == hour and int(clock_min) == min:
                self.send_func()

        time.sleep(60)

这个在mac上是不是不能用呢

执行的时候会报这个错:cannot import name 'COMError' from '_ctypes'
我查了一下 COMTypes 是为 Windows 而不是 Linux 设计的。

有点疑惑

wechat_gui.py里面,“#获得用户编号列表” 这个for,在定时发送的时候,如果要发送的消息和用户编号不对(在“#判断是否需要发送给该用户”处)(例如消息发给2号,然后搜寻到1号了),这时候会跳出到raise,然后就不继续for循环了找下面的用户了,只能把raise改成continue,让目标用户不对的时候可以继续找下去直到正确的用户(好像一开始用还没问题,不知道啥情况)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.