⼏个各类极速版⾃动阅读项⽬的autojs脚本
以下脚本我只⽤过快⼿极速版,⼀天1-2元的样⼦,3元可提现还不错,抖⾳完全没有兴趣⼀天⼏⽑钱。
脚本来源于⽆意中在的⽹站上发现,解决了⼿刷的问题。
抖⾳极速版
auto();
var appName=rawInput("","抖⾳极速版");
launchApp("抖⾳极速版");
sleep("8000");
setScreenMetrics(1080,1920);
sleep("3000")
var num=3;
while(num>1){
sleep(1000);
swipe(device.width/2,1300,device.width/2,300,2000);
sleep(10000);
}
快⼿极速版
/**
* 3元起提,没有限制,只要求⼿机验证码
*/
const perVideoWatchTime=5//每隔视频观看10秒
const halfDeviceHeight=device.height/2
const halfDeviceWidth=device.width/2
const videoSwipeDistance=halfDeviceHeight-100//视频下滑的长度 px
// test()
onlyRun()
//只允许本脚本时,将上⾏解除注释
function onlyRun(){
auto();
console.show()
log("开始快⼿极速版")
log("已获得截屏权限")
let totalTime=2*60*60 //刷2⼩时
run(totalTime)
}
function test(){
auto();
console.show()
log("开始快⼿极速测试")
log("已获得截屏权限")
click("我知道了")
exit()
}
var kuaiShou = {};
kuaiShou.main = function (totalTime) {
run(totalTime)
};
function run(totalTime){
log("计划时长:"+totalTime)
launchApp()
let watchTime=0;
for(let i=1;totalTime>watchTime;i++){
if(text("拖动滑块").findOnce()){
log("出现验证码,结束")
runOver()
break;
}
let waitTime=perVideoWatchTime+random(-4,4)
log("本视频观看时长"+waitTime)
sleep(waitTime/2*1000);
likeAndfollow(7)
sleep(waitTime/2*1000);
watchTime+=waitTime
log("已看:"+i+"个视频 "+watchTime+"秒")
swipeVideo(i)
}
}
function launchApp(){
let isLauchApp=false
while(!isLauchApp){
log("尝试启动")
launchPackage("bula")
sleep(10000)
let mesbox=id("bula:id/a4v").findOnce()
if(mesbox){
mesbox.click()
}
mesbox=id("bula:id/close").findOnce()
if(mesbox){
mesbox.click()
}
mesbox=text("我知道了").findOnce()
if(mesbox){
mesbox.click()
}
isLauchApp=id("bula:id/circular_progress_bar").findOnce()
}
log("已启动")
}
//swipeCount,滑动视频的次数
function swipeVideo(swipeCount){
let offset=random(-100,0)
if(swipeCount%6==0){
//  双数的第6次下滑
swipe(halfDeviceWidth-random(-50,50), halfDeviceHeight+offset+(videoSwipeDistance/2),        halfDeviceWidth+random(-50,50), halfDeviceHeight+offset-(videoSwipeDistance/2), 30);    }else if(swipeCount%2==0){
//双数次上滑
swipe(halfDeviceWidth+random(-50,50), halfDeviceHeight+offset,
halfDeviceWidth+random(-50,50), halfDeviceHeight+offset+(videoSwipeDistance/2), 30);    }else {
//单数下滑
swipe(halfDeviceWidth-random(-50,50), halfDeviceHeight+offset+(videoSwipeDistance/2),        halfDeviceWidth+random(-50,50), halfDeviceHeight+offset-(videoSwipeDistance/2), 30);    }
}
//有range*2+1分之⼀的概率点喜欢,range*4+1分之⼀的概率点关注,关注必定喜欢
function likeAndfollow(range){
let isLike=random(-1*range,range)
if(isLike==0){
click(halfDeviceWidth,halfDeviceHeight)
sleep(50)
click(halfDeviceWidth,halfDeviceHeight)
log("双击喜欢")
let isFollow=random(-1*range,range)
if(isFollow==0){
text("关注").click()
log("点了关注")
}else{
// log("不是点关注的概率:"+isFollow)
}
}else{
/
/ log("不是点喜欢的概率:"+isLike)
}
}
//是否已经不再有收益了
function isNoIncome(){
let isIncome=findIncomeIcon()
if(!isIncome){
sleep(6000)
isIncome=findIncomeIcon()
if(!isIncome){
log("等待6秒,不见收益红包")
return false
}
}
log("正在收益中")
return true;
}
//查收⼊红包的图标,是收益中的返回true 否则返回false
function findIncomeIcon(){
let redBag=id(" bula:id/circular_progress_bar").findOnce()
if(redBag){
let redBagBounds=redBag.bounds()
let screen=images.captureScreen();
// log(redBagBounds)
let p=images.findColorEquals(screen,"#f85050",redBagBounds.p,redBagBounds.width(),redBagBounds.height())        return p?true:false;
}
return false;
}
function runOver(){
home()
}
七猫免费⼩说
auto.waitFor();
let see_count=180;//rawInput('请输⼊滑动次数', '180');;
app.launchApp('七猫免费⼩说');
sleep(10000);
console.show(); //开启⽇志(悬浮窗权限)
let bookList = className("android.widget.LinearLayout").find();
if (bookList != null) {
bookList[2].click();
}
sleep(5000);
for (var i = 1; i <= see_count; i++) {
toast("七猫免费⼩说滑动" + i + "次" + "总计:" + see_count + "次");
js脚本开发
console.log("七猫免费⼩说滑动" + i + "次" + "总计:" + see_count + "次");
swipe(750, 120, 100, 120, 100);
let delayTime = random(15000, 20000);
sleep(delayTime);
}
番茄免费⼩说
auto.waitFor();
let see_count=180;//rawInput('请输⼊滑动次数', '180');;
app.launchApp('番茄免费⼩说');
sleep(10000);
console.show(); //开启⽇志(悬浮窗权限)
console.setSize(device.width , device.height / 4);
try {
if (className("android.widget.RadioButton").id('in').exists()) {
let bookshelf = className("android.widget.RadioButton").id('in').findOnce();
bookshelf.click();
sleep(2000);
let booklist = className('android.view.ViewGroup').find();//查到的所有ViewGroup
if (booklist != null) {
booklist[1].click();//第⼀本书的ViewGroup
}
}
} catch (e) { }
sleep(10000);
for (var i = 0; i < see_count; i++) {
toast("番茄免费⼩说滑动" + i + "次" + "总计:" + see_count + "次");
console.log("番茄免费⼩说滑动" + i + "次" + "总计:" + see_count + "次");
pressTime = random(250, 600);
swipe(750, 1000, 100, 1000, pressTime);
delayTime = random(15000, 20000);
sleep(delayTime);
}
home();

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。