分享一下基于autojs4的片多多源码

简介: 分享一下基于autojs4的片多多源码

主要是滑动部分

function 片多多(appName, executeCount, execTimes, timesInterval, IsAutoSign, IsAutoComment, IsClearCache, IsCashOut, probability, execAutoBrushDate, CurveBrushScreen, IsCloseApp, isFragmentation, fragmentationTime) {
    setJurisdiction()
    closeAd()
    for (var i = 1; i < executeCount; i++) {
        try {
            if (checkTimesIsZeroTime(execAutoBrushDate, 3)) {
                return;
            }
            let exectue_status = computerExctueTime(appName, execTimes, isFragmentation, fragmentationTime)
            if (exectue_status == 1) {
                if (fragmentAutoWeixin) {
                    微信阅读()
                }
                return //执行下一个app
            } else if (exectue_status == 2) {
                if (IsAutoSign) {
                    autoSign()
                }
                if(IsClearCache){
                    clearAppCache() 
                }
                if (IsCashOut) {
                    //autoCashOut()
                }
                toastInfo(appName + "今日薅羊毛时间已到,进入下一个app...");
                return;//今日时间已到
            } else if (exectue_status == 3) {
            }
            timesInterval=timesInterval*20
            var start = new Date().getTime();//App起始时间
            let x1 =device.height * 0.55
            let y1 =  random(device.width * 0.8, device.width * 0.9);
            let x2 =  device.height * 0.55
            let y2 = random(device.width * 0.2, device.width * 0.2); 
            let pressTime = random(400, 700);
            randomHeart('starImage', probability);//随机关注
            randomUpSildeScreen(x1, y2, x1, y1, pressTime, probability);
            randomDownSildeScreen(x1, y1, x2, y2, pressTime, timesInterval, probability);
            slideScreenDown(x1, y1, x2, y2, pressTime, timesInterval, CurveBrushScreen, IsCloseApp, isFragmentation, fragmentationTime);
            appRunTimeRecord(appName, (new Date().getTime() - start))//记录一次时间
        } catch (error) {
            toastError(appName + "刷刷刷时出现错误!" + error);
        }
    }
    function closeAd() {
        clickControlBounds(id("cancel_action"));
    }
    function autoCashOut() {
        try {
            if (id("left_button").exists()) {
                clickControlBounds(id("left_button"));
                sleepRandom3()
            }
            if (id("closeButton").exists()) {
                clickControlBounds(id("closeButton"));
            }
            if (clickControl(text("我的"))) {
                if (clickControl(text("提现"))) {
                    sleepRandom0()
                    if (text("确认提现").exists()) {
                        clickControlBounds(text("确认提现"))
                        sleepRandom1()
                        if (id("action_button_left").exists()) {
                            clickControlBounds(id("action_button_left"));
                        }
                    }
                }
            }
        } catch (error) {
            toastError(error);
        }
    }
    function autoSign() {
        toastLog("开始签到")
        let signValue = adengetSignTime(appName);
        if (getDate() == signValue) {
            toastLog("已签到本次签到跳过...");
            return;
        }
        if (clickControlBounds(text("赚钱"))) {
            sleepRandom3() //是个网页加载的慢
            sleepRandom1() //等待弹窗
            recordSignTime(appName);
            sleepRandom1() //等待弹窗
                back()
                sleepRandom1() //等待弹窗
            clickControlBounds(text("短视频"));
        }
    }
    /**
 * 清理缓存
 */
function clearAppCache() {
    toastLog("开始App清理缓存");
    if (clickControlBounds(text("我的"))) {
        sleepRandom3() //是个网页加载的慢
        swipeDown()
        if (clickControlBounds(text("设置"))) {
            sleepRandom1()
            swipeDown()
            if (clickControlBounds(text("清除系统缓存"))) {
                sleepRandom1()
                clickControlBounds(text("清除"))
                sleepRandom1()
                back()
                sleepRandom1()
                clickControlBounds(text("短视频"));
            }
        } else {
            toastLog("未发现settings")
        }
    } else {
        toastLog("未发现我的")
    }
 }
}
目录
相关文章
|
5月前
|
数据安全/隐私保护
基于AutoJs4的秘乐辅助Apk
基于AutoJs4的秘乐辅助Apk
47 0
|
5月前
AutoJs源码---神级大分享
AutoJs源码---神级大分享
140 0
|
5月前
AutoJs4.1.0 部局范围次分析
AutoJs4.1.0 部局范围次分析
64 0
|
数据采集 JSON 编解码
收藏|Unsplash高清壁纸批量下载(源码+工具)!
收藏|Unsplash高清壁纸批量下载(源码+工具)!
|
5月前
Autojs实战教程---番茄免费小说Apk文件和源码
Autojs实战教程---番茄免费小说Apk文件和源码
257 0
|
5月前
|
缓存 Android开发
基于autojs7的番茄免费小说辅助
基于autojs7的番茄免费小说辅助
128 0
|
5月前
|
缓存 数据安全/隐私保护 Python
AutoJs超神级代码分享大更新
AutoJs超神级代码分享大更新
162 0
|
编解码 人工智能 计算机视觉
一段蛋疼的代码:超不清视频播放器
一幅图像全部转成字符序列后,就可以直接在控制台输出了。对于一个视频来说,只需要将每一帧都转换后输出,并按照一定的时间间隔清屏、输出下一帧,即可达到我们的需要的效果。
|
数据安全/隐私保护
跳动爱心源码_附下载链接
跳动爱心源码_附下载链接
youtube下载视屏和字幕办法
youtube下载视屏和字幕办法
186 0