AUTOJSPRO找本地图片脚本,基于AI制作-源码区论坛-autojs-五云学习

AUTOJSPRO找本地图片脚本,基于AI制作

"ui";
// 测试机型;红米note10
var base64Image = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAUdAuADASIAAhEBAxEB/8QAHQABAAICAwEBAAAAAAAAAAAAAAcIBQYBAwQCCf/EAFEQAQABAwMBBAUHCAUHCgcAAAABAgMEBQYRBwgSITETQVFhcRQiMoGRodEVI0JSYpSxwRZDVnLSFxgkMzSCkiVVc4SipLLC4eJERUZUY3ST/8QAGwEBAQEAAwEBAAAAAAAAAAAAAAECAwQFBgf/xAAoEQEAAgIBBAIBAwUAAAAAAAAAAQIDERIEBSExE0EiBhRRFiMyQmH/2gAMAwEAAhEDEQA/ALUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/9k=";




ui.layout(
    <frame>
        <img src="{{base64Image}}" />
        <vertical w="*" gravity="center_horizontal" h="*">
            <viewpager id="viewpager">
                <ScrollView>//界面1
                    <vertical w="*" gravity="center_horizontal" h="*">
                        <card marginTop="4" h="43" alpha="1" >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <Switch id="autoService" text="无障碍服务项" textSize="16dp" checked="{{auto.service != null}}" h="33" w="*" marginTop="6" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1" >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <Switch id="skip" text="点击特定控件" textSize="16dp" h="33" w="*" marginTop="6" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1" >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <Switch id="journal" text="开启悬浮日志" textSize="16dp" h="33" w="*" marginTop="6" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1"  >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <Switch id="ignoreBatteryOptimizationSwitch" text="忽略电池优化" textSize="16dp" h="33" w="*" textColor="black" marginTop="6" alpha="1" />
                            </horizontal>
                        </card >
                        <card marginTop="4" h="43" alpha="1"  >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <text text="图片列表选择:" textSize="16dp" h="33" textColor="black" marginTop="6" alpha="1" />
                                <spinner id="mainMenuone" entries="功能设置|" textSize="16dp" h="33" textColor="black" marginTop="6" spinnerMode="dropdown" w="*" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1"  >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <text text="计数次数选择:" textSize="16dp" h="33" textColor="black" marginTop="6" alpha="1" />
                                <spinner id="mainMenutwo" entries="1次|2次|3次|4次|5次|6次|7次|8次|9次|10次|" textSize="16dp" h="33" textColor="black" marginTop="6" spinnerMode="dropdown" w="*" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1"  >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <text text="图片相似大小:" textSize="16dp" h="43" textColor="black" alpha="1" />
                                <spinner id="thresholdSpinner" w="*" h="43" marginLeft="0" entries="10%|20%|30%,|40%|50%|60%|70%|80%|90%|100%|" spinnerMode="dropdown" textSize="16dp" textColor="black" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" alpha="1"  >
                            <horizontal>
                                <View bg="#4caf50" h="*" w="16" alpha="1" />
                                <input id="name" hint="填写软件名称" gravity="center" singleLine="true" layout_weight="1" textColor="#f00000" textSize="16dp" alpha="1" />
                            </horizontal>
                        </card>
                        <card marginTop="4" h="43" cardCornerRadius="20" bg="#2196F3" alpha="1" >
                            <button id="startone" text="启动" textSize="16dp" style="Widget.AppCompat.Button.Borderless" h="43" textColor="black" alpha="1" />
                        </card>
                    </vertical>
                </ScrollView>//界面1
            </viewpager>
        </vertical>
    </frame>
);
const storage = storages.create("my_storage");
// 设置 ui.thresholdSpinner 的默认值为上次用户选择或默认为70%
const defaultThresholdIndex = storage.get("thresholdIndex", 6); // 如果找不到值,默认为70%,即索引6
ui.thresholdSpinner.setSelection(defaultThresholdIndex);




importClass('android.view.WindowManager');// 屏蔽输入法
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);// 屏蔽输入法
ui.skip.checked = false; // 设置开关初始状态为关闭
ui.emitter.on("resume", function () {
    // 根据自动服务的状态更新开关的选中状态
    ui.autoService.checked = auto.service != null;




});
ui.autoService.on("check", function (checked) {




    // 如果开关选中且自动服务未启用
    if (checked && auto.service == null) {
        // 打开系统的无障碍设置页面
        app.startActivity({
            action: "android.settings.ACCESSIBILITY_SETTINGS"
        });
    }
    // 如果开关未选中且自动服务已启用
    if (!checked && auto.service != null) {
        // 禁用自动服务
        auto.service.disableSelf();
    }
})




ui.startone.on("click", function () { //"启动"按钮点击事件
    setInterval(() => {
        var appName = ui.name.text(); //获取用户输入的应用名
        var pkgName = app.getPackageName(appName); //获取应用对应的包名
        if (pkgName == null) { //如果包名未获取到
            // toast("未找到应用: " + appName); //提示用户
            return;
        }
        if (currentPackage() != pkgName) { //如果当前应用不是用户输入的应用
            app.launchPackage(pkgName); //启动输入的应用
        } else {
            // toast("当前已经在应用中: " + appName); //提示用户
        }
    }, 3000);
}); //点击事件
ui.skip.on("check", function (checked) {
    if (checked) {
        var lastClickTime = 0; // 记录上次点击的时间




        threads.start(function () {
            while (true) {
                var 跳过控件 = textContains("跳过").findOnce();
                if (跳过控件 != null) {
                    var bounds = 跳过控件.bounds();
                    if (bounds != null) {
                        var centerX = bounds.centerX();
                        var centerY = bounds.centerY();
                        var currentTime = new Date().getTime(); // 获取当前时间
                        if (currentTime - lastClickTime >= 2000) { // 判断距离上次点击的时间是否超过两秒
                            click(centerX, centerY);
                            lastClickTime = currentTime; // 更新上次点击的时间
                        }
                    }
                }
            }
        })
    }
});




ui.startone.on("click", () => {




    // 存储用户当前选择的阈值索引
    storage.put("thresholdIndex", ui.thresholdSpinner.getSelectedItemPosition());

    threads.start(function () {
        var spIndex = ui.mainMenuone.getSelectedItemPosition();
        if (spIndex === null) {
            console.log("请选择图片列表!");
            return;
        }
        if (spIndex != null) { // 添加判断条件,处理null值情况
            switch (spIndex) {
                case 0:
                    图片列表 = ["钓鱼", "领取", "放弃", "机会", "关闭", "收下"];
                    break;
            }
        } else {
            console.log("请选择图片列表!");
            return;
        }
        找图(图片列表);
        toast("开始运行了(ÒωÓױ)!!!");
    });
});




var 图片计数 = {}; // 存储图片计数的对象
var 当前找图 = ""; // 当前正在找的图片
function 找图(图片列表) {
    if (!requestScreenCapture()) {
        console.log("请求截图失败");
        exit();
    }




    var 相似大小 = ["10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"];
    var 相似大小对应阈值 = [0.1, 0.2, 0.3, 0.4, 1, 0.6, 0.75, 0.8, 0.9, 1.0];
    var 相似大小索引 = Number(ui.thresholdSpinner.getSelectedItemPosition());
    // 获取用户选择的阈值索引
    var 相似大小索引 = storage.get("thresholdIndex", 6); // 默认为70%,即索引6
    var 阈值 = 相似大小对应阈值[相似大小索引];
    var 用户选择的计数次数 = Number(ui.mainMenutwo.getSelectedItem().toString().replace("次", ""));

    if (!图片列表 || 图片列表.length === 0) {
        tlog("图片列表为空!");
        return;
    }




    while (true) {
        for (let 图 of 图片列表) {
            var 是否找到 = 图片(图, 阈值, 用户选择的计数次数);
            if (是否找到) {
                break; // 找到图片后,中断当前的循环;
            }
        }
    }
}
var 上次找到的坐标 = null; // 上次找到的图片坐标

function 图片(所找图, 阈值, 用户选择的计数次数) {
    var 大图 = images.captureScreen();
    var imgWidth = 大图.width;
    var imgHeight = 大图.height;
    var 小图 = images.read("/sdcard/本地文件夹/" + 所找图 + ".jpg");
    var w = 小图.getWidth();
    var h = 小图.getHeight();
    var result = images.matchTemplate(大图, 小图, {
        region: [0, 0, imgWidth, imgHeight],
        threshold: 阈值,
        max: 5,
    });

    小图.recycle();
    大图.recycle();


    if (result.matches.length > 0) {
        if (当前找图 !== 所找图) {
            for (let key in 图片计数) {
                图片计数[key] = 0; // 重置其他图片的计数
            }
            当前找图 = 所找图; // 设置当前正在找的图片
        }

        图片计数[所找图] = (图片计数[所找图] || 0) + 1; // 计数加一
        var match = result.matches[0];
        var x = match.point.x + w / 2;
        var y = match.point.y + h / 2;




        if (图片计数[所找图] === 用户选择的计数次数) {
            var currentTime = new Date();
            var hour = currentTime.getHours();
            var minute = currentTime.getMinutes().toString().padStart(2, '0'); // 使用padStart确保有两位数
            console.log("时间:" + hour + ":" + minute + ",找到图片:" + 所找图 + ",在第 " + 用户选择的计数次数 + " 次,坐标:" + x + ", " + y);
        }

        上次找到的坐标 = { x: x, y: y }; // 记录这次找到的坐标
        // 延迟点击
        // if (图片计数[所找图] >= 用户选择的计数次数) {
        //     if (所找图 === "某个图片") {
        //         sleep(random(5000, 8000)); // 延迟点击
        //     }
        //     click(x, y);
        //     图片计数[所找图] = 0; // 点击后重置计数
        // }
        return true;
    } else {
        return false;
    }
}

var Intent = android.content.Intent;
var Settings = android.provider.Settings;
var receiver;

// 创建广播接收器
function createReceiver() {
    receiver = new android.content.BroadcastReceiver({
        onReceive: function (context, intent) {
            var action = intent.getAction();
            if (action === Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS) {
                // 更新开关状态
                var isIgnored = isIgnoringBatteryOptimizations(context);
                ui.run(() => {
                    ui.ignoreBatteryOptimizationSwitch.setChecked(isIgnored);
                });
            }
        }
    });
    var filter = new android.content.IntentFilter();
    filter.addAction(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS);
    context.registerReceiver(receiver, filter);
}




// 检查是否已经忽略电池优化
function isIgnoringBatteryOptimizations(context) {
    var powerManager = context.getSystemService(android.content.Context.POWER_SERVICE);
    return powerManager.isIgnoringBatteryOptimizations(context.getPackageName());
}




// 根据开关状态来申请或取消忽略电池优化
ui.ignoreBatteryOptimizationSwitch.on("check", function (checked) {
    if (checked) {
        // 申请忽略电池优化
        var intent = new Intent();
        intent.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);
        intent.setData(android.net.Uri.parse("package:" + context.getPackageName()));
        app.startActivity(intent);
    }
});




// 创建广播接收器并初始化开关状态
createReceiver();
var isIgnored = isIgnoringBatteryOptimizations(context);
ui.ignoreBatteryOptimizationSwitch.setChecked(isIgnored);
var window; // 声明悬浮窗变量




function showWindow() {
    window = floaty.rawWindow(
        // 创建悬浮窗口
        <card w={device.width} h="120" id="log_card" bg="#404040" visibility="visible"> // 定义一个卡片布局,宽度为屏幕宽度,高度为85像素
            <vertical w="*" h="*">
                <card bg="#404040" w="*">
                    <horizontal>
                        <card bg="#404040" w="191">
                            <text h="25" id="hide" gravity="center" text="隐藏日志" bg="#FF8C00" textSize="16dp" />
                        </card>
                        <card bg="#404040" w="197">
                            <text h="25" id="exit" gravity="center" text="退出脚本" bg="#4169E1" textSize="16dp" />
                        </card>
                    </horizontal>
                </card>
                <card w={device.width} bg="#404040" h="*">
                    <vertical w="*" gravity="center_horizontal" h="*">
                        <scroll layout_width="match_parent" layout_height="match_parent" scrollToTop="true" gravity="top|left">
                            <text id="log_text" textSize="16dp" textColor="#000000" gravity="top|left"></text>
                        </scroll>
                    </vertical>
                </card>
            </vertical>
        </card>
    )

    var logArray = []; // 定义一个存储日志信息的数组

    var y = device.height - 405 // 计算y坐标值

    window.setPosition(0, y); // 设置悬浮窗的位置为(0,y)
    window.setTouchable(true); // 设置悬浮窗可触摸

    console.log = function (message) { // 重写console.log函数
        logArray.push(message); // 将日志信息推入logArray数组
        updateLog(); // 调用updateLog函数更新日志内容
        window.log_text.parent.smoothScrollTo(0, window.log_text.height); // 滚动日志到底部
    };

    function updateLog() { // 定义更新日志的函数
        var logContent = logArray.join("\n"); // 将logArray数组中的日志信息连接成一个字符串,用换行符分隔
        ui.run(() => { // 在UI线程中执行更新操作
            window.log_text.setText(logContent); // 设置文本视图的内容为连接后的日志信息字符串
            setTimeout(() => { // 延迟执行滚动操作,确保在更新文本内容后进行滚动
                window.log_text.parent.smoothScrollTo(0, window.log_text.height); // 平滑滚动日志到最新位置
            }, 500);  // 延迟500毫秒进行滚动
        });
    }

    window.exit.on("click", () => {
        exit(); // 退出程序
    });

    window.hide.on("click", () => {
        toast("待制作")
    });

}

function hideWindow() {
    if (window) {
        window.close(); // 关闭悬浮窗
    }
}

ui.journal.on("check", function (checked) { // "启动"按钮点击事件
    if (checked) {
        showWindow(); // 开启悬浮窗
    } else {
        hideWindow(); // 关闭悬浮窗
    }
});

 

请登录后发表评论

    没有回复内容