Short video praise account maintenance gadget Autojs source code learning

Today I will share a small tool for Douyin account maintenance, which may be used by everyone.

So today I will share the source code, mainly to let everyone learn some operations of commonly used Autojs controls . (Because the blogger is not the author of the source code, if there is any infringement, please private message me to delete it.)

Don't talk nonsense, the source code of the previous part:

function 主程序() {
    if(app.launch("com.ss.android.ugc.aweme")){
        sleep(2000)
        if (ui.yhkg.checked) {
            养好功能()
        }
        if (ui.fskg.checked) {
            粉丝功能()
        }
    }else{
        alert("请安装抖音,脚本停止")
        exit()
    }
}

function 养好功能() {
    var 点赞概率 = Number(ui.dzgl.text())
    var 视频数 = random(Number(ui.gk.text()), Number(ui.gk1.text()))
    toastLog("正在进行养号功能")
    sleep(2000)
    var 首页 = 控件(className("android.widget.FrameLayout").depth(9).drawingOrder(1))
    if (首页) {
        sleep(500)
    }
    sleep(1000)
    for (let i = 0; i < 视频数; i++) {
        倒计时(ui.tl.text(), ui.tl1.text())
        var 概率 = random(1, 100)
        if (点赞概率 >= 概率) {
            点赞()
        } else {
            toastLog("本次不需要点赞")
            sleep(1800)
        }
        // var 滑动 = desc("视频").scrollable().findOne(1500)
        // if (滑动) {
        //     toastLog("养号进度:" + (i + 1) + "/" + 视频数)
        //     sleep(1500)
        //     log(滑动.scrollForward())
        //     sleep(1500)
        // }
        toastLog("养号进度:" + (i + 1) + "/" + 视频数)
        sleep(random(1500, 1800))
        gesture(500, 
          [device.width / 2, (device.height / 2) + (device.height / 2) / 2],
          [random(50,device.width-50), device.height / 10])
    }


}

function 粉丝功能(){
    var 账号 = 获取号(ui.dywb.text())
    toastLog("当前文本共有:"+账号.length+"个UID")
    sleep(1500)
    if (iq < 账号.length - 1) {
        for (iq; iq < 账号.length; iq++) {
            files.write("/sdcard/ss.txt", (iq + 1));
            log("操作到" + iq + "\n上次操作:" + 账号[iq - 1] + "\n本次操作:" + 账号[iq])
            toastLog("本次操作UID:" + 账号[iq])
            sleep(1000)
            抖音跳转(账号[iq])
            粉丝()
        }
    } else {
        alert("正在操作UID第" + iq + "个,\nUID总数" + (账号.length - 1) + "个.请检查,脚本停止")
        exit()
    }
}
//完整源码获取:https://pan.baidu.com/s/10hxRRqVZiilWWe1Db9E2Vg?pwd=rulj 
//提取码:rulj 

Renderings:

 

Guess you like

Origin blog.csdn.net/m0_55125030/article/details/131608831