/*
软件作者:https://xuhss.com/oxox/pro
*/
auto();//授权auto.js
/***
* 线程监听页面弹窗
* 修正附近的人,不会循环点击下一个,
* 修正跳过广告,直播间,聊天室,
*
* 使用说明:请在小米4手机上使用,android 7.0.2版本,如出现控件抓不到,请自行修改;
* auth:ydy
* QQ:398123186
*/
//基础配置
var dianzancishu = 0;
var dianzanshijian = 1000;
var denglu_cishu = 0;
xuanze_xb = "女";//想看到的用户 全部、女、男
xuanze_sj = "15分钟"; //出现的时间 15分钟 1小时 1天
xuanze_nl = "全部";//出现的时间 15分钟 1小时 1天
xuanze_xz = "不限";//12星座
xuanze_vip = 0;//是否看会员 0=不看,1=看
dengdai = 3;//默认5秒点赞一次
wait_time = 1000*dengdai;//1秒
threads.start(function(){
//监听弹窗事件
while(true){
sleep(1200);
if(text('跳过').exists()){
toastLog('弹出匹配通讯录');
text('跳过').click();
}
if(id('citycard_close').exists()){
toastLog('弹出升级框');
id('citycard_close').click();
}
}
})
main();
function main(){
try{
momozhuye();
}catch(exp){
toastLog(exp);
}
}
function momozhuye(){
if(text('附近动态').exists()&&text('附近的人').exists()&&text('附近直播').exists()){
toast('陌陌首页');
//sleep(1000);
附近的人 = className('android.view.ViewGroup').find()[6];
click(附近的人.bounds().centerX(),附近的人.bounds().centerY());
sleep(2000);
click(975,530);//点击筛选
while(1){
sleep(2000);
if(text('筛选').exists()){
if(xuanze_xb=='女') click(339,583);
if(xuanze_xb=='男') click(587,583);
sleep(1000);
if(xuanze_sj=="3天") click(823,836);
if(xuanze_sj=="1天") click(605,836);
if(xuanze_sj=="1小时") click(336,836);
if(xuanze_sj=="15分钟") click(62,836);
sleep(1000);
if(xuanze_vip==0){
if(className('android.widget.CompoundButton').findOne().checked()){
click(className('android.widget.CompoundButton').findOne().bounds().centerX(),className('android.widget.CompoundButton').findOne().bounds().centerY());
}
}else{
if(!className('android.widget.CompoundButton').findOne().checked()){
click(className('android.widget.CompoundButton').findOne().bounds().centerX(),className('android.widget.CompoundButton').findOne().bounds().centerY());
}
}
sleep(1000);
//点击完成
text('完成').click();
break;
}
}
sleep(3000);
//收缩上面的菜单栏
if(text('附近正在线的人').exists()){
swipe(500,478+210,500,72,800);//收缩导航栏
}else{
swipe(500,478,500,72,800);
}
sleep(2000);
while(flag){
sleep(3000);
//检测附近用户是否加载
if(id('com.immomo.momo:id/userlist_item_tv_name').exists()&& !text('已展示所有筛选结果,可选择其他筛选项').exists()){
list = id('com.immomo.momo:id/userlist_item_tv_name').find();
listbo = id('com.immomo.momo:id/userlist_item_tv_sign').find();
for(let child = 0; child < list.size(); child++) {
if(list[child].bounds().width()>600){
toastLog('有广告:'+list[child].text());
}
if(listbo[child].text()=="正在直播"){
toastLog('正在直播:'+list[child].text());
}
if(listbo[child].text()=="他在聊天室KTV房间"){
toastLog('他在聊天室KTV房间'+list[child].text());
}
if(listbo[child].text().search("他在") != -1 && listbo[child].text().search("房")!= -1){
toastLog(listbo[child].text()+list[child].text());
}else{
click(list[child].bounds().centerX(),list[child].bounds().centerY());
text('对话').waitFor();
swipe(500,1000,500,0,800);
sleep(2000);
if(id("feed_like_view").exists()){
sleep(1000);
click(id("feed_like_view").find()[0].bounds().centerX(),id("feed_like_view").find()[0].bounds().centerY());
sleep(2000);
dianzancishu++;
//当前已经点赞
toastLog("用户:"+list[child].text()+"|点赞成功,当前点赞次数:"+dianzancishu);
}else{
toastLog("当前用户没有动态");
}
sleep(1000);
back();
sleep(3000);
}
sleep(1000);
swipe(500,500,500,211,1000);//每次执行完滑动一次
break;
}
}else if (text('已展示所有筛选结果,可选择其他筛选项').exists()){
toastLog('切换账号了');
exit();
}else{
//没有加载数据
toastLog('附近的人没有数据加载');
continue;
}
}
}
}
AutoJs源码-点赞测试版-v1
需积分: 1 86 浏览量
2022-11-16
02:38:10
上传
评论
收藏 2KB 7Z 举报
[虚幻私塾】
- 粉丝: 335
- 资源: 1559
最新资源
- 基于多种编程语言的Jugg后台管理系统设计源码
- java进销存管理系统(jsp+mssql).rar
- tensorflow-2.9.3-cp310-cp310-win-amd64.whl
- tensorflow-2.9.2-cp310-cp310-win-amd64.whl
- 2000-2021年各地级市普通高等学校在校学生数数据.xls
- tensorflow-gpu-2.9.2-cp310-cp310-win-amd64.whl
- 2000-2021年各地级市人力资本水平数据(含原始数据+计算过程+计算结果).xlsx
- WX小程序源码无后台weapp-360che-master
- 基于Android的水产养殖管理系统设计源码
- demo_LADRC_simulink.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈