1 Star 0 Fork 0

雷帅 / 成语接龙微信作弊器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Wechat2.0.py 828 Bytes
一键复制 编辑 原始数据 按行查看 历史
雷帅 提交于 2020-02-02 18:23 . first commit
from pypinyin import lazy_pinyin
import uiautomation as auto
import pickle
import random
import time
d = pickle.load(open('idiom.pk',"rb"))
for i in range(30):
print('\r[' + '='*i + '.'*(30-i) + ']',end='',flush=True)
time.sleep(0.1)
wechat_window = auto.WindowControl(ClassName='WeChatMainWndForPC',searchDepth=1)
message_list_window = wechat_window.ListControl(Name='消息')
last_message = ""
while True:
if last_message != message_list_window.GetChildren()[-1].Name:
last_message = message_list_window.GetChildren()[-1].Name
last_message_pinyin = lazy_pinyin(last_message)[-1]
res = random.sample(d[last_message_pinyin],1)[0]
auto.SendKeys(res)
auto.SendKeys('{enter}')
last_message = message_list_window.GetChildren()[-1].Name
else:
time.sleep(1)
Python
1
https://gitee.com/RADIUMSCRIPTTANG/idiom_jielong_wechat_cheater.git
git@gitee.com:RADIUMSCRIPTTANG/idiom_jielong_wechat_cheater.git
RADIUMSCRIPTTANG
idiom_jielong_wechat_cheater
成语接龙微信作弊器
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891