当前位置:网站首页>Auto.js 找图防止泄漏
Auto.js 找图防止泄漏
2022-08-06 15:00:00 【宴西笔记】
"ui";
ui.layout(
<vertical>
<button id="开始"text="开始"/>
</vertical>
);
threads.start(function(){
requestScreenCapture();
})
ui.开始.click((a) => {
if (a.text() == "开始") {
a.setText("结束")
//开线程
threads.start(function() {
while (true) {
找图()
}
})
return;
}
a.setText("开始")
threads.shutDownAll() //关闭所有线程
回收所有图片()
})
let t = {
}
function 找图() {
t.名字 = images.read("/storage/emulated/0/脚本/Aj图片/1658990898251.png");
let img=captureScreen();
let p = images.findImage(img, t.名字); //找图
if(p){
toastLog("找到")
}else {
toastLog("没找到")
}
sleep(3000)
t.名字.recycle()
}
function 回收所有图片() {
for (let i in t) {
if (i) {
t[i].recycle()
}
}
}
QQ群 568523841
边栏推荐
猜你喜欢

用于毫米波雷达的GNN:Radar-PointGNN

From technical panorama to scene combat, analyze the evolutionary breakthrough of "narrowband HD"

池塘cPond分享会第5期 • 守望者联盟 • 巴比特副总裁马千里 • 数字艺术对Web3的价值...

(零知识证明)关于gnark包不匹配导致链码安装失败的问题

Odoo website tutorial - theme

作者简介&系列文章
![[Installation filling pit] -import win32api, sys, os ImportError: DLL load failed: The specified module could not be found.](/img/33/7f66bcf72499729078b5546f3464e1.png)
[Installation filling pit] -import win32api, sys, os ImportError: DLL load failed: The specified module could not be found.

Golang interface principle

抖音 滑块验证方案 s_v_web_id 参数分析

Two Set collections get the same elements
随机推荐
New kernel PHP enterprise website development and construction management system
LeetCode刷题日记:135. 分发糖果
JSP简单文件上传至数据库(图片上传)
池塘cPond分享会第5期 • 守望者联盟 • 巴比特副总裁马千里 • 数字艺术对Web3的价值...
20220804-al422 test 01
LeetCode刷题日记:全排列
【LeetCode】658. Find the K closest numbers
【OpenCV图像处理3】:绘制基本图形
Engineers invented about 48 hours, millet millet head hoop, netizen: change the Monkey King is not a dream!
utils 定时器 (三) 最小堆
SAP BAPI 教程 – 在 ABAP 中创建 BAPI 的分步指南-020
作者简介&系列文章
Flutter For Web实践
如何利用字符串格式化漏洞
抖音 滑块验证方案 s_v_web_id 参数分析
stc8a--al422B————01, RE has been grounded on the hardware.
什么是元宇宙?
大热的“数字艺术品”存储在哪?会不会丢?
mv-lcd初始化
Frida系列--Stalker原理分析