<<抖音自动引流脚本源码.>>
auto();
//等待广告加载
launchApp("抖音极速版");
sleep(Math.random()*100+10000);
click("我知道了");
sleep(3000);
back();
sleep(2000);
var w = device.width;
var h = device.height;
while(true){
var i = random(0,9);
swipe(w * 0.6 - random(10, 30), h * 0.7 + random(10, 20), w * 0.6 + random(50, 80), h * 0.4 + random(10, 30), random(220, 235))
sleep(random(8000,20000));
if(i==1)liuYan();
if(i==8)dianZan();
sleep(2000);
}
function liuYan(){
try {
sleep(1000);
id("ac2").findOne(5).click();
var a = http.get("https://words.lanhaiqingbao.com/api.php").body.string();
sleep(3000);
id("ac6").findOne(5).click();
sleep(3000);
setText(a);
sleep(2000);
id("ack").findOne(5).click();
sleep(2000);
if(id("kw").exists())back();
} catch (error) {
log(error);
}
}
function dianZan(){
try {
sleep(1000);
var isZan = id("anc").findOne(5).desc();
if(isZan.search("未选中")>=0){
var frames = className("android.widget.FrameLayout").depth(22).clickable(true).find();
frames[3].click();
}else{
toast("已经赞过了");
}
} catch (error) {
log(error);
}
}