from wxauto import *
# 获取当前微信客户端
wx = WeChat()
# 获取会话列表
wx.GetSessionList()
# 向某人发送消息(以`文件传输助手`为例)
msg = '你好~我是微尘,全网同名,感谢点赞 + 转发'
#file1 = 'C:/Users/Administrator/Deskto;
# file2 = 'C:/Users/Administrator/Deskto;
who = '文件传输助手'
wx.ChatWith(who) # 打开`文件传输助手`聊天窗口
#wx.SendMsg(msg)
#wx.SendFiles(file1)
#who2 = '文件传输助手'
#wx.ChatWith(who2)
# wx.SendMsg(msg)
#wx.SendFiles(file1)
for i in range(10):#若是发多遍,启用这行代码,下方代码要缩进4位才有效
wx.SendMsg(msg)