当前位置:网站首页>Auto.js实现朋友圈自动点赞
Auto.js实现朋友圈自动点赞
2022-08-03 19:55:00 【越陌度阡】
最近在学脚本开发,今天终于有小有所成,写了一个朋友圈自动点赞的功能,以下是代码实现,特此记录。
// 单个页面点击
function pageClick(){
// 整个页面"两点"集合
var twoDotList = id("com.tencent.mm:id/ik").find();
// 循环操作每个"两点"
twoDotList.forEach(item => {
// 点击"两点"
item.click();
// 等待"赞"出现
sleep(1500);
// 获取"赞"控件
var good = text("赞").findOnce();
if(good){
// 获取"赞"父控件
var goodParent = good.parent();
goodParent.click();
sleep(1500);
};
// 歇一会儿
sleep(1500);
});
};
// 循环整个列表
while(true){
// 页面点赞
pageClick();
sleep(2000);
// 向上翻页
className("android.widget.ListView").findOne().scrollDown();
sleep(2000);
};边栏推荐
- LeetCode 622. Designing Circular Queues
- The effective square of the test (one question of the day 7/29)
- ECCV2022 | 用于视频问题回答的视频图Transformer
- Hinton2022年RobotBrains访谈记录
- 虚拟机vmware设置桥接模式上网
- 【leetcode】剑指 Offer II 009. 乘积小于 K 的子数组(滑动窗口、双指针)
- Detailed explanation of JWT
- ESP8266-Arduino编程实例-BH1750FVI环境光传感器驱动
- 钱江摩托某型号产品ECU货不对版 消费者知情权应如何保障?
- 告诉你0基础怎么学好游戏建模?
猜你喜欢
随机推荐
JMeter笔记5 |Badboy使用和录制
开源生态研究与实践| ChinaOSC
Internet Download Manager简介及下载安装包,IDM序列号注册问题解决方法
In-depth understanding of JVM-memory structure
群辉查看硬盘存储占用的方式
手把手教你定位线上MySQL慢查询问题,包教包会
边缘盒子+时序数据库,美的数字化平台 iBuilding 背后的技术选型
建模该从哪一步开始?给你分析,给零基础的你一些学习建议
不要再用if-else
1161 最大层内元素和——Leetcode天天刷【BFS】(2022.7.31)
Force is brushed buckle problem for the sum of two Numbers
(十六)51单片机——红外遥控
怎么将自己新文章自动推送给自己的粉丝(巨简单,学不会来打我)
ADS 2023 Download Link
The addition and subtraction of the score of the force deduction brush question (a daily question 7/27)
Redis 内存满了怎么办?这样置才正确!
matplotlib画polygon, circle
从腾讯阿里等大厂出来创业搞 Web3、元宇宙的人在搞什么
子树的大小
codeforces:C. Maximum Subrectangle【前缀和 + 贪心 + 最小子数组和】









