@@ -49,3 +49,6 @@ v.1.3版本:202500422
|
||||
2、修复模糊模式下找到地脉花但没有的情况下会继续寻找地脉花的问题。
|
||||
3、优化模糊查找下的开始线路。
|
||||
4、修复由于检测地脉之花页面导致的软件报错。
|
||||
|
||||
v.1.3.1版本:20250429
|
||||
1、优化寻找地脉花线路方法。
|
||||
@@ -267,19 +267,21 @@
|
||||
let XIAN23 = await imageRecognition(DIMAIHUA,1,0,0,1076,651,160,142);
|
||||
if ( (XIAN23.y+651)<=720){AutofilePath=3;log.info("找到线路'3'");await leftButtonUp();return true}//return true
|
||||
if ( (XIAN23.y+651)>720){AutofilePath=2;log.info("找到线路'2'");await leftButtonUp();return true}//return true
|
||||
let XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x<969){mo=0;}else if(XIANmo.x>1171){mo=2;}else{mo=1;}}
|
||||
let XIAN1 = await imageRecognition(DIMAIHUA,1,0,0,714,633,130,124);if (XIAN1.found){AutofilePath=1;log.info("找到线路'1'");await leftButtonUp();return true}//return true
|
||||
let XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x<969){mo=0;}else if(XIANmo.x>1171){mo=2;}else{mo=1;}await leftButtonUp();;return false}
|
||||
let XIAN1 = await imageRecognition(DIMAIHUA,1,0,0,714,633,130,124);if (XIAN1.found){AutofilePath=1;log.info("找到线路'1'");await leftButtonUp();;return true}//return true
|
||||
await moveMouseTo(132,583);
|
||||
await sleep(200);
|
||||
let XIAN4 = await imageRecognition(DIMAIHUA,1,0,0,884,497,107,87);if (XIAN4.found){AutofilePath=4;log.info("找到线路'4'");await leftButtonUp();return true}//return true
|
||||
XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=3}
|
||||
XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=3;await leftButtonUp();return false}
|
||||
await moveMouseTo(1064,1026);
|
||||
await sleep(200);
|
||||
let XIAN5 = await imageRecognition(DIMAIHUA,1,0,0,680,148,87,72);if (XIAN5.found){AutofilePath=5;log.info("找到线路'5'");await leftButtonUp();return true}//
|
||||
XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=4}else{mo=5}
|
||||
AutofilePath =0;
|
||||
await leftButtonUp();
|
||||
return false
|
||||
XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x>420){mo=4;}else if(XIANmo.x<420){mo=5;}await leftButtonUp();;return false}
|
||||
else{throw new Error("线路出错,退出!")}
|
||||
|
||||
// AutofilePath =0;
|
||||
// await leftButtonUp();
|
||||
// return false
|
||||
}
|
||||
|
||||
// 放大寻路模式
|
||||
@@ -326,7 +328,6 @@
|
||||
}
|
||||
await genshin.returnMainUi();
|
||||
mo=0; //重置模糊量
|
||||
log.info("111");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "地脉花-可禁UID&领每日&好感队切换",
|
||||
"version": "1.3",
|
||||
"version": "1.3.1",
|
||||
"bgi_version": "0.44.3",
|
||||
"description": "枫丹地脉花,蓝花金花通用。生存压力大,请带盾奶;避免纯水输出。地脉花特殊,请注意说明文件。QQ:119996800(茶包) 加我请说明来意。",
|
||||
"authors": [
|
||||
|
||||
@@ -154,7 +154,7 @@ async function insertMaterial(){
|
||||
await sleep(100);
|
||||
await moveMouseBy(0,30);
|
||||
// 薄荷图片检测
|
||||
const maxRetries = 8; // 最大重试次数
|
||||
const maxRetries = 15; // 最大重试次数
|
||||
let retries = 0; // 当前重试次数
|
||||
while (retries < maxRetries) {
|
||||
await imageRecognition(BH, 1, 0, 0);
|
||||
@@ -179,6 +179,8 @@ async function insertMaterial(){
|
||||
await sleep(500);
|
||||
if (retries === maxRetries) {
|
||||
await leftButtonUp();
|
||||
await sleep(100);
|
||||
await moveMouseTo(1287,131);
|
||||
await genshin.returnMainUi();
|
||||
throw new Error("未找到材料(默认薄荷,自定义请看'注意使用事项.txt')!");}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "参量质变仪(LCB)",
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
"bgi_version": "0.44.0",
|
||||
"description": "参量质变仪(LCB)",
|
||||
"authors": [
|
||||
|
||||
@@ -14,3 +14,7 @@
|
||||
1、测试阶段,如有错误,请QQ:119996800联系反馈。
|
||||
2、官方刚释放了图片和文字识别的API,一些用法还没太懂,我自己在这基础封装一下,打包后方便后续复用。
|
||||
3、JS的逻辑还不是很熟悉,写Verilog多了,脑子转不过来,请谅解。
|
||||
|
||||
六、更新说明
|
||||
v.1.120250426
|
||||
1、修改下拉菜单次数适配4K分辨率。
|
||||
Reference in New Issue
Block a user