当前位置:网站首页>Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
2022-07-29 07:47:00 【PYB3】
目录

好久不见,公司相关需求早就全部完成了,并且稳定测试运行,效果图大家可以看下面。
效果动图

日志信息输出
14:12:07.025/V: 开始运行[/storage/emulated/0/脚本/微信自动化消息发送/WXNewsMain.js]
14:12:07.123/D: 启动脚本
14:12:07.381/D: 脚本路径:/storage/emulated/0/脚本/微信自动化消息发送
14:12:18.695/D: 兼容微信启动:true
14:12:20.216/D: 通讯录:点击兼容pro版本:true
14:12:20.905/D: 通讯录:点击兼容pro版本:true
14:12:21.568/D: 通讯录:点击兼容pro版本:true
14:12:21.568/D: 检查并成功进入通讯录主界面
14:12:21.734/D: 群聊:点击兼容pro版本:true
14:12:23.194/D: 微信机器人群:点击兼容pro版本:true
14:12:23.194/D: 接口URL:http://192.168.168.28:8080/api/values/510300-自贡市,510400-攀枝花市,511900-巴中/2
14:12:32.358/D: [微信机器人群]群发送完毕
14:12:32.759/D: 兼容微信启动:true
14:12:34.249/D: 通讯录:点击兼容pro版本:true
14:12:34.936/D: 通讯录:点击兼容pro版本:true
14:12:35.600/D: 通讯录:点击兼容pro版本:true
14:12:35.600/D: 检查并成功进入通讯录主界面
14:12:35.765/D: 群聊:点击兼容pro版本:true
14:12:37.226/D: 机器人群聊2:点击兼容pro版本:true
14:12:37.226/D: 接口URL:http://192.168.168.28:8080/api/values/510300-自贡市,510400-攀枝花市,511900-巴中/2
14:12:46.421/D: [机器人群聊2]群发送完毕
14:12:46.859/D: 兼容微信启动:true
14:12:48.345/D: 通讯录:点击兼容pro版本:true
14:12:49.033/D: 通讯录:点击兼容pro版本:true
14:12:49.697/D: 检查并成功进入通讯录主界面
14:12:49.696/D: 通讯录:点击兼容pro版本:true
14:12:49.862/D: 群聊:点击兼容pro版本:true
14:12:51.320/D: 接口URL:http://192.168.168.28:8080/api/values/510300-自贡市,510400-攀枝花市,511900-巴中/2
14:12:51.320/D: 政务中心:点击兼容pro版本:true
14:13:00.439/D: [政务中心]群发送完毕
14:13:00.440/D: *** 所有群发送完毕 ***
功能简述
- 启动微信并查找指定的群聊天界面;
- 多群发送接口返回的消息;
- 动态配置相关内容并保存配置信息;
- 升级功能模块;
- 保证设备长时间运行的稳定性,支持每周定时重启设备;
- 设备开机后自动启动指定脚本程序;
- 各种单个功能检查模块;
- 各种点击操作的重试机制;
- 复位等功能;
项目结构

总结
从学习autojs到开发成品小项目总共花3周左右,也是第一次使用vscode工具,并学习JavaScript脚本语言,个人感觉该脚本语言调试速度非常快比起java而言。
autojs4.1.1编写不舒服的地方:
- 代码错了非常不好找问题;
- 原生的vscode很多api无补全,绝大部分硬敲;(问题在auto4.1.1相关的api都这样)
- auto和js部分兼容问题也存在,导致代码写对了实际运行被阻塞还不报错;
总的来说,会Android原生开发理解学习autojs是非常快的,基本做到了边学边写项目。
公司第一阶段项目编写完毕,后面不知道是否有auto相关的项目,如果没有可能会很长、很长、很长时间不在更新auto相关文章。最近想学习服务器后端开发,正好学习了JavaScript语言,打算学习node.js后端开发。
光看不敲是没用的
看后一定要去实践
一定要去敲代码
一定要去运行试错
这样才是有意义的学习
边栏推荐
- [summer daily question] Luogu P6500 [coci2010-2011 3] zbroj
- 《nlp入门+实战:第五章:使用pytorch中的API实现线性回归》
- Pytest set (7) - parameterization
- Solve the problem that CSDN cannot publish blog due to unknown copyright
- Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
- STM32 operation w25q256 w25q16 SPI flash
- Prometheus and grafana
- 蓝桥杯A组选数异或
- 多线程购物
- Write some DP
猜你喜欢
黑盒测试常见错误类型说明及解决方法有哪些?

RoBERTa:A Robustly Optimized BERT Pretraining Approach

2022 Shenzhen Cup Title A: get rid of "scream effect" and "echo room effect" and get out of the "information cocoon room"

Actual measurement of boot and pH pins of buck circuit

10 practical uses of NFT

The smallest positive number that a subset of an array cannot accumulate

《nlp入门+实战:第五章:使用pytorch中的API实现线性回归》

监听页面滚动位置定位底部按钮(包含页面初始化定位不对鼠标滑动生效的解决方案)

Meizhi optoelectronics' IPO was terminated: annual revenue of 926million he Xiangjian was the actual controller
What are the principles and methods of implementing functional automation testing?
随机推荐
[deep learning] data preparation -pytorch custom image segmentation data set loading
蓝桥杯A组选数异或
零数科技深度参与信通院隐私计算金融场景标准制定
【无标题】格式保存
[daily question in summer] Luogu p6408 [coci2008-2009 3] pet
Pat class a 1146 topology sequence
Why don't you like it? It's easy to send email in cicd
Cs61abc sharing session (VI) detailed explanation of program input and output - standard input and output, file, device, EOF, command line parameters
The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
Gin abort cannot prevent subsequent code problems
Ionicons icon Encyclopedia
Mutationobserver document learning
Popular cow G
Meizhi optoelectronics' IPO was terminated: annual revenue of 926million he Xiangjian was the actual controller
黑盒测试常见错误类型说明及解决方法有哪些?
After the access database introduces DataGridView data, an error is displayed
Prometheus and grafana
Can the subset of the array accumulate K
Joseph Ring problem
受欢迎的牛 G