基于autojs7的元宝视频极速版辅助

源码和apk下载地址: https://wwa.lanzoui.com/iObBrthpskj

我的博客欢迎来踩踩:http://www.yadinghao.com/

筷子辅助:http://www.yadinghao.com/article/details/202108190002

头疼辅助:http://www.yadinghao.com/article/details/202108300001

柿子辅助:http://www.yadinghao.com/article/details/202108260001

虾米辅助:http://www.yadinghao.com/article/details/202109010001

最近元宝视频极速版非常火爆,火爆的原因就是收益高呗。所以我也参与了一下写了个辅助自己刷刷刷了一下感觉还可以。主要有这么几个简单的功能:

  1. 自动翻页看视频,这个是基本功能都应该有。
  2. 自动签到
  3. 自动提现
  4. 清理App缓存
  5. 清理手机缓存(R9SK或者是安卓7机器)
  6. 开启控制台
  7. 下载元宝视频极速版
  8. 随机上滑
  9. 随机点赞

此软件是使用autojs pro 7编写的,虽然7这个破解版不是很好,但是支持找图,还是使用了。本次核心技术就是找图我自己编写的方法还不错支持多个图片一起找。

/**
 * 找图,找到并点击
 * @param {可以是数组也可以是字符串,传输数组可以多次找图知道找到为止} img_path_array 
 * @param {找图区域,默认是全屏找图,该参数可以不传输} area_region 
 * @param {相似度,默认是0.8,可以不传输} threshold 
 * @returns true表示执行成功Flase表示失败
 */
Tools.clickAreaForFindImage=function(img_path_array, area_region, threshold,is_continue) {
    try {
        area_region = area_region || [0, 0, device.width, device.height] //默认的找图区域 全屏找图 前2位是坐标 后面是长度和宽度   千万别理解成是坐标
        threshold = threshold || 0.8 // 默认的相识度0.8
        is_continue=is_continue|| false
        if (img_path_array instanceof Array) {
            let arrayLength = img_path_array.length
            for (let i = 0; i < arrayLength; i++) {
                //toastLog("正在进行第" + (i + 1) + "次找图...")
                img_path = img_path_array[i] //小图地址可判断是否存在
                if (!files.exists(img_path)) {
                    toastLog(img_path + "文件不存在因此跳过")
                    continue
                }
                var little_image = images.read(img_path) //小图
                var find_result_bounds = findImage(
                    captureScreen(), little_image, {
                    region: area_region,
                    threshold: threshold
                });
                if (find_result_bounds) {
                    toastLog(img_path+"图找到,准备点击坐标:" + find_result_bounds)
                    click(find_result_bounds.x, find_result_bounds.y)
                    return true
                } else {
                    //toastLog(img_path+"小图存在但是在大图中未找到图片进入下一次循环...")
                }
            }
            return false
        }
        if (typeof (img_path_array) == "string") {
            img_path = img_path_array//小图地址可判断是否存在
            if (!files.exists(img_path)) {
                toastLog(img_path + "文件不存在因此跳过")
                return false
            }
            var little_image = images.read(img_path) //小图
            var find_result_bounds = findImage(
                captureScreen(), little_image, {
                region: area_region,
                threshold: threshold
            });
            if (find_result_bounds) {
                toastLog(img_path+"图找到,准备点击坐标:" + find_result_bounds)
                click(find_result_bounds.x, find_result_bounds.y)
                return true
            } else {
                //toastLog(img_path + "小图存在但是在大图中未找到图片")
                return false
            }
        }
    } catch (error) {
        toastLog("clickAreaForFindImage方法出现错误:" + error)
        return false;
    }
}

亚丁号元宝视频极速版辅助项目的project.json

整个工程截图:

压缩文件内容:

筷子就是快手软件是完全免费的可以放心使用。

项目运行日志:

function autoCashOut() {
    if(adenTools.clickControlBounds(text("赚钱"))){
        adenTools.sleepRandom3() //是个网页加载的慢
        adenTools.clickControlBounds(id("cancel_action"));
        if(adenTools.clickControlBounds(text("立即提现"))){
            adenTools.sleepRandom3() //是个网页加载的慢
            adenTools.clickControlBounds(text("立即提现"));
            adenTools.sleepRandom1()
                back()
                adenTools.sleepRandom1()
                adenTools.clickControlBounds(text("首页"))
        }
    }
}

function clearAppCache() {
   if(adenTools.clickControlBounds(text("赚钱"))){
        adenTools.sleepRandom3() //是个网页加载的慢 setting_bg
        adenTools.clickControlBounds(id("cancel_action"));
        if(adenTools.clickControlBounds(id("setting_bg"))){
            if (adenTools.clickControlBounds(text("清除缓存"))) {
                adenTools.sleepRandom1()
                adenTools.clickControlBounds(text("确认"))
                adenTools.sleepRandom1()
                back()
                adenTools.sleepRandom1()
                adenTools.clickControlBounds(text("首页"))
            }
        }
    }else {
        toastLog("未发现赚钱")
    }
}

源码和apk下载地址: https://wwa.lanzoui.com/iObBrthpskj

学习知识费力气,

收集整理更不易。

知识付费甚欢喜,

为咱码农谋福利。

Guess you like

Origin blog.csdn.net/zy0412326/article/details/120059676