当前位置:网站首页>微信运动自动点赞
微信运动自动点赞
2022-06-29 01:52:00 【小码~】
本文章基于Auto.js编写,希望喜欢的用户点赞收藏,后续有更多脚本,大家一起努力。
auto.waitFor();
APP_wxyd();
function APP_wxyd(){
while(true){
if(text("排行榜").exists()){
toastLog("当前在排行榜页面")
//寻找点赞图标
var object=id("c5s").find();
if(!object.empty()){
//遍历点赞图标
object.forEach(function(currentValue,index){
if(currentValue){
var like=currentValue.parent().parent()
if(like.click()){
log("执行点赞成功");
sleep(random(0,1000))//随机延时
}else{
toastLog("Error:点赞失败")
}
};
//错误处理
if(text("赞我的朋友").exists()){
back();//返回
sleep(random(0,1000))
}
if(textEndsWith("的主页").exists()){
back();//返回
sleep(random(0,1000))
}
})
}else{
toastLog("Error:没找到");
}
}
else{
toastLog("Error:不在排行榜页面")
};
//检查是否到达底部
if(text("邀请朋友").exists()){
toastLog("点赞结束")
break;
}
//检查是否在排行榜页面
if(text("排行榜").exists()){
//开始翻页
let rect=id("dz").findOne().bounds();//图像高度
var y2=rect.bottom;
swipe(device.width/2+random(-100,100),device.height-10,device.width/2+random(-100,100),y2,random(0,1000))
}
}
}
边栏推荐
- Large scale visual relationship understanding
- 如何成为一名高级数字 IC 设计工程师(6-4)数字 IC 验证篇:测试点分解
- Fibonacci sequence
- Fundamentals of scala (3): operators and process control
- Who do you want to know when opening a stock account? Is it safe to open an account online now?
- With this tool, automatic identification and verification code is no longer a problem
- How to become a senior digital IC Design Engineer (3-5) tools: Spyglass Technology
- 机构加密资产产品上周流出4.23亿美元资金,创历史新高
- Magic Quadrant of motianlun's 2021 China Database
- C语言课程设计------食品仓库管理系统
猜你喜欢

In MySQL database, the two data written when creating tables with foreign keys are the same. Do I copy them or fail to display them

Latest version of CorelDRAW technical suite2022

How to prevent virus

Last week, institutional encryption asset products outflow US $423million, a record high

TypeScript(4)接口

Typescript (5) class, inheritance, polymorphism

SAP ui5 beginner tutorial 24 - how to use OData data model

Design and development of VB mine sweeping game

ASP. Net based on LAN

Docker中安装Oracle数据库
随机推荐
4276. 擅长C
[TS] as type assertion
Adding, deleting, checking and modifying stack - dynamic memory
Brief description of 802.1x Protocol
Stm32l4xx serial port log configuration analysis
Basic use of Sqlalchemy
Installation de la base de données Oracle dans docker
基于 FPGA 的 RISC CPU 设计(4)关于项目的 36 个问题及其答案
Learning notes of Lichuang EDA: Copper laying dead zone? isolated island? Dead copper?
Three tips from small video app source code developers on small video platforms
TypeScript(4)接口
Magic Quadrant of motianlun's 2021 China Database
How to encrypt anti copy program
[TS] type alias
Who do you want to know when opening a stock account? Is it safe to open an account online now?
TypeScript(6)函数
牛客网——华为题库(41~50)
[solution] longest common subsequence
Typescript (6) function
I want to buy stocks today, OK? Is it safe to open an account online now?