x阅读,多平台合集脚本源码

x阅读,多平台合集脚本源码-七哥副业网
x阅读,多平台合集脚本源码
此内容为付费资源,请付费后查看
会员专属资源
您暂无购买权限,请先开通会员
开通会员
付费资源
已售 73

图片[1]-x阅读,多平台合集脚本源码-七哥副业网

部分代码展示

function 健身猫() { //健身猫
    if (width_x == 1080 && height_y == 1920 || width_x == 1080 && height_y == 2160) {
        recents_close("健身猫");
        var threshold = 10
        var count = 0
        var tixian = 0
        var clock_start_1 = new Date().getTime(); //获取时间戳
        var clock_start_2 = parseInt(clock_start_1 / 1000)
        while (true) {
            var img = captureScreen()
            sleep(2000)
            count = count + 2
            if (width_x == 1080 && height_y == 2160) { //华为
                var value_1 = 定点找色(533, 410, "#fee475", img, threshold)//每日红包
                if (value_1 != null) {
                    var value_1 = 定点找色(370, 1346, "#fdea60", img, threshold)
                    if (value_1 != null) {
                        click(548, 1088)
                        log("每日红包")
                        count = 0
                        sleep(1000)
                        var img = captureScreen()
                    }
                }
                var value_1 = 定点找色(924, 170, "#fcd441", img, threshold)//主页
                if (value_1 != null) {
                    var value_1 = 定点找色(338, 181, "#ffd644", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(1024, 2063, "#fd3d4a", img, threshold)
                        if (value_1 != null) {
                            if (tixian == 0) {
                                click(976, 533)
                                log("转盘")
                                count = 0
                                sleep(1000)
                                var img = captureScreen()
                            }
                            if (tixian == 1) {
                                click(660, 202)
                                log("提现")
                                count = 0
                                sleep(1000)
                                var img = captureScreen()
                            }
                        }
                    }
                }
                var value_1 = 定点找色(339, 655, "#fda72c", img, threshold)//需要更新
                if (value_1 != null) {
                    var value_1 = 定点找色(862, 740, "#fffdf0", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(472, 1284, "#f52300", img, threshold)
                        if (value_1 != null) {
                            click(543, 1274)
                            log("需要更新")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(928, 225, "#fd9151", img, threshold)//转盘
                if (value_1 != null) {
                    var value_1 = 定点找色(535, 1629, "#fb9593", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(402, 1677, "#ff2301", img, threshold)
                        if (value_1 != null) {
                            click(514, 1666)
                            log("转盘")
                            count = 0
                            sleep(5000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(697, 1045, "#f1ae3d", img, threshold)//恭喜获得
                if (value_1 != null) {
                    var value_1 = 定点找色(242, 263, "#ffee94", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(852, 292, "#fdf7e7", img, threshold)
                        if (value_1 != null) {
                            click(556, 1042)
                            log("恭喜获得")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(175, 452, "#e67a1f", img, threshold)//收下1
                if (value_1 != null) {
                    var value_1 = 定点找色(581, 1323, "#fcdc6d", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(562, 1138, "#fa1f00", img, threshold)
                        if (value_1 != null) {
                            click(545, 1132)
                            log("收下")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(191, 632, "#f98c6d", img, threshold)//收下2
                if (value_1 != null) {
                    var value_1 = 定点找色(664, 1430, "#f4b742", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(580, 1406, "#fa2000", img, threshold)
                        if (value_1 != null) {
                            click(543, 1418)
                            log("收下2")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
            } //华为
            if (width_x == 1080 && height_y == 1920) { //小米
                var value_1 = 定点找色(1008, 66, "#ffd242", img, threshold)//主页
                if (value_1 != null) {
                    var value_1 = 定点找色(156, 575, "#94e73a", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(1011, 554, "#f7694a", img, threshold)
                        if (value_1 != null) {
                            if (tixian == 0) {
                                click(977, 419)
                                log("转盘")
                                count = 0
                                sleep(1000)
                                var img = captureScreen()
                            }
                            if (tixian == 1) {
                                click(669, 78)
                                log("提现")
                                count = 0
                                sleep(1000)
                                var img = captureScreen()
                            }
                        }
                    }
                }
                var value_1 = 定点找色(979, 102, "#ff9252", img, threshold)//转盘
                if (value_1 != null) {
                    var value_1 = 定点找色(952, 104, "#ffffff", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(435, 1548, "#ff2000", img, threshold)
                        if (value_1 != null) {
                            click(535, 1553)
                            log("转盘")
                            count = 0
                            sleep(5000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(998, 224, "#ff8e52", img, threshold)//每日红包
                if (value_1 != null) {
                    var value_1 = 定点找色(507, 867, "#ff2000", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(109, 528, "#fff7b5", img, threshold)
                        if (value_1 != null) {
                            click(532, 891)
                            log("每日红包")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(697, 1045, "#f1ae3d", img, threshold)//恭喜获得--
                if (value_1 != null) {
                    var value_1 = 定点找色(242, 263, "#ffee94", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(852, 292, "#fdf7e7", img, threshold)
                        if (value_1 != null) {
                            click(556, 1042)
                            log("恭喜获得")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(513, 319, "#e65919", img, threshold)//收下1
                if (value_1 != null) {
                    var value_1 = 定点找色(524, 1030, "#f72000", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(655, 1016, "#f7be4a", img, threshold)
                        if (value_1 != null) {
                            click(535, 1032)
                            log("收下")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
                var value_1 = 定点找色(579, 910, "#ff2000", img, threshold)//收下2
                if (value_1 != null) {
                    var value_1 = 定点找色(527, 144, "#ffef94", img, threshold)
                    if (value_1 != null) {
                        var value_1 = 定点找色(654, 921, "#f7c24a", img, threshold)
                        if (value_1 != null) {
                            click(539, 920)
                            log("收下2")
                            count = 0
                            sleep(1000)
                            var img = captureScreen()
                        }
                    }
                }
            }//小米
            if (count > 2) { //阻塞
                var value_1 = className("android.widget.ImageView").find() //关闭1
                if (!value_1.empty()) {
                    for (i = 0; i <= value_1.length - 1; i++) {
                        if (value_1[i].id() == null) {
                            if (value_1[i].depth() >= 4) {
                                if (value_1[i].indexInParent() == 1) {
                                    if (value_1[i].parent().parent().parent().id() == "android:id/content") {
                                        if (value_1[i].parent().parent().parent().packageName() == "com.auto98.fkjsm") {
                                            if (value_1[i].clickable() == true) {
                                                back()
                                                log("关闭1")
                                                sleep(3000)
                                                count = 0
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                var value_1 = className("android.widget.Image").find() //关闭2
                if (!value_1.empty()) {
                    for (i = 0; i <= value_1.length - 1; i++) {
                        if (value_1[i].id() == null) {
                            if (value_1[i].depth() >= 10) {
                                if (value_1[i].indexInParent() == 0) {
                                    if (value_1[i].parent().parent().parent().parent().parent().id() == "main") {
                                        if (value_1[i].parent().parent().parent().parent().parent().packageName() == "com.auto98.fkjsm") {
                                            if (value_1[i].clickable() == false) {
                                                back()
                                                log("关闭2")
                                                sleep(3000)
                                                count = 0
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                var value_1 = className("android.widget.ImageView").find() //关闭3
                if (!value_1.empty()) {
                    for (i = 0; i <= value_1.length - 1; i++) {
                        if (value_1[i].id() == null) {
                            if (value_1[i].depth() >= 5) {
                                if (value_1[i].indexInParent() == 1) {
                                    if (value_1[i].parent().parent().parent().parent().id() == "android:id/content") {
                                        if (value_1[i].parent().parent().parent().parent().packageName() == "com.auto98.fkjsm") {
                                            if (value_1[i].clickable() == true) {
                                                value_1.click()
                                                log("关闭3")
                                                sleep(3000)
                                                count = 0
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                var value_1 = id("com.auto98.fkjsm:id/tt_insert_dislike_icon_img").findOne(50) //关闭4
                if (value_1 != null) {
                    value_1.click()
                    log("关闭4")
                    count = 0
                    sleep(3000)
                }
                var value_1 = id("com.auto98.fkjsm:id/ksad_end_close_btn").findOne(50) //关闭5
                if (value_1 != null) {
                    value_1.click()
                    log("关闭5")
                    count = 0
                    sleep(3000)
                }
                var value_1 = id("com.auto98.fkjsm:id/tt_video_ad_close_layout").findOne(50) //关闭6
                if (value_1 != null) {
                    value_1.click()
                    log("关闭6")
                    count = 0
                    sleep(3000)
                }
            }
            var clock_stop_1 = new Date().getTime(); //获取时间戳
            var clock_stop_2 = parseInt(clock_stop_1 / 1000)
            if (clock_stop_2 - clock_start_2 >= 550) {
                toast("脚本执行,跳转下一个APP")
                log("脚本执行,跳转下一个APP")
                sleep(2000)
                Recording_time_2(43, 10)
                break;
            }
            all_package()
            if (count >= 4 && count <= 44) { //弹窗
                if (currentPackage() != "com.auto98.fkjsm") {
                    launch("com.auto98.fkjsm");
                    sleep(6000)
                    count = count + 6
                }
                log("脚本运行中..." + count)
                sleep(2000)
                count = count + 2
            }
            if (count >= 45 && count <= 59) { //倒计时
                var count_1 = 60 - count
                log("倒计时:" + count_1 + "秒")
                sleep(2000)
                count = count + 2
            }
            if (count >= 60) { //重连
                toast("重新启动")
                log("重新启动")
                sleep(3000)
                recents_close("健身猫");
                count = 0
            }
        }
    }
}

 

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享