mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-07-07 22:56:06 +08:00
修复不能管理已经打开微信
This commit is contained in:
parent
29c5846c12
commit
bc17f10924
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -25,4 +25,5 @@ build/
|
||||||
config.ini
|
config.ini
|
||||||
ntchat/wc/*.pyd
|
ntchat/wc/*.pyd
|
||||||
wheelhouse/
|
wheelhouse/
|
||||||
setup_conf.py
|
setup_conf.py
|
||||||
|
upload.bat
|
|
@ -38,7 +38,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
# 等待登录
|
# 等待登录
|
||||||
wechat.wait_login()
|
wechat.wait_login()
|
||||||
|
@ -63,7 +63,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
# 等待登录
|
# 等待登录
|
||||||
wechat.wait_login()
|
wechat.wait_login()
|
||||||
|
@ -97,7 +97,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
|
|
||||||
# 注册消息回调
|
# 注册消息回调
|
||||||
|
@ -155,7 +155,7 @@ class NtChatWindow(XWindow):
|
||||||
|
|
||||||
def on_btn_open_clicked(self, sender, _):
|
def on_btn_open_clicked(self, sender, _):
|
||||||
self.wechat_instance = ntchat.WeChat()
|
self.wechat_instance = ntchat.WeChat()
|
||||||
self.wechat_instance.open()
|
self.wechat_instance.open(smart=True)
|
||||||
self.wechat_instance.on(ntchat.MT_ALL, self.on_recv_message)
|
self.wechat_instance.on(ntchat.MT_ALL, self.on_recv_message)
|
||||||
|
|
||||||
def on_btn_send_clicked(self, sender, _):
|
def on_btn_send_clicked(self, sender, _):
|
||||||
|
|
|
@ -6,7 +6,7 @@ import xml.dom.minidom
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
|
|
||||||
# 注册消息回调
|
# 注册消息回调
|
||||||
|
|
|
@ -5,7 +5,8 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
|
||||||
|
wechat.open(smart=True)
|
||||||
|
|
||||||
|
|
||||||
# 注册消息回调
|
# 注册消息回调
|
||||||
|
|
|
@ -5,7 +5,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
|
|
||||||
def on_recv_text_msg(wechat_instance: ntchat.WeChat, message):
|
def on_recv_text_msg(wechat_instance: ntchat.WeChat, message):
|
||||||
|
|
|
@ -5,7 +5,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
# 等待登录
|
# 等待登录
|
||||||
wechat.wait_login()
|
wechat.wait_login()
|
||||||
|
|
|
@ -5,7 +5,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
# 等待登录
|
# 等待登录
|
||||||
wechat.wait_login()
|
wechat.wait_login()
|
||||||
|
|
|
@ -5,5 +5,5 @@ import ntchat
|
||||||
# 多开3个微信
|
# 多开3个微信
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
wechat.open()
|
wechat.open(smart=False)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import ntchat
|
||||||
wechat = ntchat.WeChat()
|
wechat = ntchat.WeChat()
|
||||||
|
|
||||||
# 打开pc微信, smart: 是否管理已经登录的微信
|
# 打开pc微信, smart: 是否管理已经登录的微信
|
||||||
wechat.open(smart=False)
|
wechat.open(smart=True)
|
||||||
|
|
||||||
# 等待登录
|
# 等待登录
|
||||||
wechat.wait_login()
|
wechat.wait_login()
|
||||||
|
|
|
@ -24,7 +24,7 @@ class NtChatWindow(XWindow):
|
||||||
|
|
||||||
def on_btn_open_clicked(self, sender, _):
|
def on_btn_open_clicked(self, sender, _):
|
||||||
self.wechat_instance = ntchat.WeChat()
|
self.wechat_instance = ntchat.WeChat()
|
||||||
self.wechat_instance.open()
|
self.wechat_instance.open(smart=True)
|
||||||
self.wechat_instance.on(ntchat.MT_ALL, self.on_recv_message)
|
self.wechat_instance.on(ntchat.MT_ALL, self.on_recv_message)
|
||||||
|
|
||||||
def on_btn_send_clicked(self, sender, _):
|
def on_btn_send_clicked(self, sender, _):
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
VERSION = '0.1.1'
|
VERSION = '0.1.2'
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -194,7 +194,7 @@ extension.extra_compile_cpp_args = extra_compile_cpp_args[target_os]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='ntchat',
|
name='ntchat',
|
||||||
version='0.1.1',
|
version='0.1.2',
|
||||||
description='About Conversational RPA SDK for Chatbot Makers',
|
description='About Conversational RPA SDK for Chatbot Makers',
|
||||||
long_description="",
|
long_description="",
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user