/*
软件作者:https://xuhss.com/oxox/pro
*/
//console.show()
launchApp("红包头条")
sleep(10000)
/*id("tab_textview").className("android.widget.TextView").text("任务").findOne().parent().click()
sleep(2000)
id("mc_sign").findOne().click()
id("fr_option_button").findOne().click()*/
/*if(text("立即签到").exists()){
text("立即签到").click()
}
id("fr_option_button").findOne().click()
id("tab_textview").className("android.widget.TextView").text("头条").findOne().parent().click()*/
setScreenMetrics(1080, 1920);
var biaoti=""
swipe(544,1633,544,404,500)
sleep(2000)
swipe(544,1077,544,404,300)
while(true){
waitForActivity("com.martian.hbnews.activity.MainActivity")
var list=className("android.support.v7.widget.RecyclerView").findOne();
//log(list.children())
//log(list1[0])
for(var i=0;i<list.childCount();i++){
//toast("进去了")
// toast(i)
//if(id("news_push_hint").exists()){
// back()
//}
//sleep(2000)
// waitForActivity("com.martian.hbnews.activity.MainActivity")
sleep(1000)
//toast(list.child(i).find(textContains("广告")).size())
list=className("android.support.v7.widget.RecyclerView").findOne()
var c=list.child(i).find(textContains("广告"))
toast(c.empty())
if(c.empty()){
var biaoti1=list.child(i).child(0).child(0).child(0).text()
if(biaoti!=biaoti1){
list.child(i).child(0).child(0).click();
waitForActivity("com.martian.hbnews.libnews.activity.MartianNewsWebViewActivity")
sleep(2000);
h=random(8,9)
log(h)
for(var j=0;j<h;j++){
swipe(504,1437,504,837,300)
sleep(600+random(2,4)*600)
淘宝()
if(id("news_push_hint").exists()){
recents()
sleep(2000)
swipe(892,1457,204,1457,200)
sleep(3000)
click(854,1425)
sleep(3000)
exit()
}
log("2")
}
biaoti=biaoti1
}
sleep(2000)
click(88,162)
sleep(2000)
if(currentActivity()=="com.martian.hbnews.libnews.activity.MartianNewsWebViewActivity"){
back()
}
}
waitForActivity("com.martian.hbnews.activity.MainActivity")
sleep(2000)
}
sleep(2000)
swipe(544,1633,544,404,300)
sleep(2000)
swipe(544,1077,544,404,300)
sleep(2000)
swipe(544,1077,544,404,300)
sleep(2000)
}
function 淘宝(){
if(currentActivity()=="com.taobao.browser.BrowserActivity"){
back()
}
}
AutoJs源码-红包头条(1)
需积分: 1 95 浏览量
2022-11-16
05:03:40
上传
评论
收藏 1KB 7Z 举报
[虚幻私塾】
- 粉丝: 334
- 资源: 1559
最新资源
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
- python-leetcode面试题解之第168题Excel表列名称-题解.zip
- python-leetcode面试题解之第167题两数之和II输入有序数组-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈