Autojs4.1.0实战教程---火火小视频极速版功能合集

火火小视频极速版小助手源码链接:https://pan.baidu.com/s/1ZH1ab5wc3Xk4kfd54SpfQQ 提取码:h3in

火山极速版邀请码:279116054 合集地址:https://blog.csdn.net/zy0412326/article/details/105682696

快手极速版邀请码: 2rvxaem 代码地址:https://blog.csdn.net/zy0412326/article/details/105657348

抖音极速版邀请码:896357244  代码地址:https://blog.csdn.net/zy0412326/article/details/105578897 

功能看截图不多说多了你们懂。(说多了不让发啊)

源代码截图:

Autojs4.1.0实战教程---火火小视频极速版功能合集_第1张图片

功能截图1:

Autojs4.1.0实战教程---火火小视频极速版功能合集_第2张图片

功能截图2:

Autojs4.1.0实战教程---火火小视频极速版功能合集_第3张图片

核心代码:

/**
 * 薅羊毛
 * @param {应用列表} appArray 
 * @param {应用打开次数} foreach_count 
 * @param {屏幕滑动次数} see_count 
 * @param {是否显示控制台} isShowConsole 
 * @param {延迟时间} timesInterval 
 */
function wool(appArray, foreach_count, see_count, isShowConsole, timesInterval, IsAutoSign, IsClearCache, IsCashOut, CashNumber, IsAutoComment) {
    threads.start(function () {
        if (isShowConsole) {
            console.show();
            console.setSize(device.width, device.height / 4);
        }
    });
    let appName = appArray[0];//就抖音自己的App
    toastLog("当前自动刷App:" + appName);
    app.launchApp(appName);
    sleep(10000);//目前无法判断网速和splash时间,只能延迟久一点。10秒延迟。
    adolescentWindows();//通用的青少年提醒关闭方法
    try {
        let boundVideo = null;
        let bottomMenu = className("android.widget.RelativeLayout").find();
        console.show(); //开启日志(悬浮窗权限)
        for (let i = 0; i < bottomMenu.length; i++) {
            let video = bottomMenu[i].children().findOne(text("小视频"));
            if (video != null) {
                boundVideo = bottomMenu[i].bounds();
            }
        }
        click(boundVideo.centerX(), boundVideo.centerY());
        sleep(5000);
    } catch (e) { }
    if (IsAutoSign) {
        toastLog("自动签到并记录");
        autoSign(appName);//自动签到并记录
    }
    for (x = 1; x <= foreach_count; x++) {
        
        for (y = 1; y <= see_count; y++) {
            let curDateTimes = new Date();
            let start = curDateTimes.getTime();//App起始时间

            let currentDateTime = curDateTimes.getFullYear() + "-" + (curDateTimes.getMonth() + 1) + "-" + curDateTimes.getDate() + " " + curDateTimes.getHours() + ":" + curDateTimes.getMinutes() + ":" + curDateTimes.getSeconds();
            let messagge = currentDateTime + " " + appName + "被打开第" + x + "次一共" + foreach_count + "次。" + "本次打开滑动" + y + '次,' + "总计:" + see_count + "次"
            toastLog(messagge);
            clickGoldEgg();
            if (IsAutoComment) {
                autoComment();
            }
            randomUpSildeScreen();
            randomDownSildeScreen();
            randomHeart('good_count_layout');
            slideScreenDown(device.width / 2, device.height - device.height * 0.25, device.width / 2, device.height * 0.1, 400,timesInterval);
            var end = new Date().getTime();//结束时间
            appRunTimeRecord(appName, (end - start))//记录一次时间
        }
    }
    if (IsClearCache) {
        autoClearAppCache();//自动清理内存
        sleep(10000);
    }
    try {
        toastLog("自动提现标标志"+IsCashOut);
        if (IsCashOut) {
            autoCashOut(CashNumber);
        }
    } catch (e) { toastLog("提现失败" + e); }
    toast("薅羊毛程序执行完毕3秒后即将关闭...");
    console.error("薅羊毛程序执行完毕3秒后即将关闭...");
    for (let i = 3; i >= 1; i--) {
        console.error(i);
        sleep(1000);
        if (i == 1) {
            home();//返回主页面
            return;
        }
    }
}

其他代码就不贴了,老铁们自行下载。

山高路远坑深,大军纵横驰奔,谁敢横刀立马?惟有点赞加关注大军

火火小视频极速版小助手源码链接:https://pan.baidu.com/s/1ZH1ab5wc3Xk4kfd54SpfQQ 提取码:h3in

你可能感兴趣的:(AutoJs,薅羊毛)