/*
软件作者:https://xuhss.com/oxox/pro
*/
"auto";
//漏赞过多请稍微调大延迟
var 延迟 = 200;
launchApp("QQ");
//点击联系人图标
className("TabWidget").findOne().child(1).click();
toast("请展开要点赞的分组");
var fail = 0;
while(true){
var list = id("elv_buddies").className("AbsListView").findOne();
var count = list.childCount();
print("count" + list.childCount());
for(let i = 0; i < count; i++){
try{
let child = list.child(i);
print(i);
if(isFriend(child)){
//点进好友名片
child.click();
fav(10);
backToList();
sleep(延迟);
}
}catch(e){
fail++;
toast("可能漏赞:" + fail);
}
}
list.scrollForward();
}
//点赞
function fav(times){
var i = 0;
var btn = descEndsWith("点击可赞").findOne();
while(i < times){
i += btn.click()? 1 : 0;
}
}
//判断是否是好友的视图
function isFriend(child){
return child && child.className().endsWith("LinearLayout") && child.childCount() == 2 && child.child(0).className().endsWith("FrameLayout");
}
//返回好友列表
function backToList(){
id("ivTitleBtnLeft").click();
}
AutoJs源码-好友列表名片点赞(不完美)
需积分: 1 10 浏览量
2022-11-15
13:57:43
上传
评论
收藏 870B 7Z 举报
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
[虚幻私塾】
- 粉丝: 335
- 资源: 1558
最新资源
- XuGuManager
- python调CANoe
- TA-Lib-0.4.29-cp312-win-amd64.whl
- springboot底层机制实现: zzw-springboot项目
- 06-18-科文22软件-mybatis-spring整合-上午.wmv
- 海信智能电视刷机数据 LED42K600X3D(1001) 生产用软件数据 务必确认机编一致 强制刷机 整机USB升级程序
- 目标检测-手机屏幕表面缺陷检测数据集-1200张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 「天若有情 」深情版--天下万般兵刃 唯有过往伤人最深.mp3
- 123456daWDdwD
- 用友U810.1数据库字典-只需要1积分
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)