v.1.3版本 参量质变仪 20250629 (#1235)

* Delete repo/js/参量质变仪 directory

重新命名升级

* v.1.3版本 参量质变仪  20250629

### v.1.3 20250629
- 更改下来滚动条方式,防止鼠标超出边界。
- 规范化脚本名称,添加README.md文件。
This commit is contained in:
kaedelcb
2025-06-29 06:13:34 +08:00
committed by GitHub
parent acb60f7543
commit d2512bfa64
20 changed files with 59 additions and 31 deletions

View File

@@ -0,0 +1,46 @@
# 参量质变仪使用说明
## 一、使用前准备
- **设置队伍**:使用前请在配置中设置要切换的队伍(必填),否则脚本会自动结束任务。
## 二、脚本使用
- **芭芭拉充能**脚本使用芭芭拉的攻击动作充能参量质变仪请确保切换的队伍4号位为芭芭拉。
## 三、自定义放入材料
1. **截图保存**:自行截图所需图片,保存在“`\assets`”目录下。建议在1080P下进行截图推荐PNG或BMP格式
2. **默认材料**:默认参量质变仪选取物料为“薄荷”。
3. **自定义材料选择**:在“材料”选项中,如自定义材料,请在配置“选填,质变的材料在哪一类物品中(默认材料)”中选择所在类目。
4. **常用材料**:“`\assets`”目录下已截图了一些常用的材料,将对应图地址配置到设置中即可。
5. **新材料地址**:在配置中填入新的材料图片地址,例如:`assets/niujiao.png`
## 四、调度与执行
- **建议**建议直接加入每日执行的调度器如果参量质变仪在冷却中CD脚本会自动结束任务。
## 五、后言
1. **测试阶段反馈**目前处于测试阶段如有错误请通过QQ119996800联系反馈。
2. **API封装**官方刚释放了图片和文字识别的API一些用法还在学习中已在此基础上进行了封装方便后续复用。
## 六、更新说明
### v.1.1 20250426
- 修改下拉菜单次数适配4K分辨率。
### v.1.2 20250512
- 更改UID识别方法适配原神UI改变。
### v.1.3 20250629
- 更改下来滚动条方式,防止鼠标超出边界。
- 规范化脚本名称添加README.md文件。

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -147,14 +147,15 @@ async function insertMaterial(){
break;
}
//滚轮预操作
//滚轮预操作
await moveMouseTo(1287,131);
await sleep(100);
await leftButtonDown();
await sleep(100);
await moveMouseBy(0,30);
await moveMouseTo(1287,161);
// 薄荷图片检测
const maxRetries = 15; // 最大重试次数
let YOffset = 0; // Y轴偏移量根据需要调整
const maxRetries = 20; // 最大重试次数
let retries = 0; // 当前重试次数
while (retries < maxRetries) {
await imageRecognition(BH, 1, 0, 0);
@@ -175,15 +176,18 @@ async function insertMaterial(){
}
retries++; // 重试次数加1
//滚轮操作
await moveMouseBy(0,30);
YOffset += 50;
await sleep(500);
if (retries === maxRetries) {
if (retries === maxRetries || 161+YOffset > 1080) {
await leftButtonUp();
await sleep(100);
await moveMouseTo(1287,131);
await genshin.returnMainUi();
throw new Error("未找到材料(默认薄荷,自定义请看'注意使用事项.txt'");}
}
throw new Error("未找到材料(默认薄荷,自定义请看'注意使用事项.txt'");
}
await moveMouseTo(1287,161+YOffset);
await sleep(300);
}
}

View File

@@ -1,10 +1,10 @@
{
"manifest_version": 1,
"name": "参量质变仪",
"version": "1.2",
"version": "1.3",
"bgi_version": "0.44.0",
"description": "参量质变仪自动化,请注意说明文件,如有BUG请联系作者QQ:119996800",
"tags":["参量质变仪" ],
"tags":["参量质变仪"],
"authors": [
{
"name": "LCB-茶包"

View File

@@ -1,22 +0,0 @@
一、使用前请在配置中设置要切换的队伍(必填),否则会自动结束任务。
二、脚本用芭芭拉的攻击动作充能参量质变仪请确保切换的队伍4号位为芭芭拉。
三、自定义放入材料:
1、自行截图所需图片保存在“\assets”目录下。建议在1080P下进行截图,推荐PNG或BMP格式
2、默认参量质变仪选取物料为“薄荷”在“材料”选项中如自定义材料请在配置“选填质变的材料在哪一类物品中默认材料”进行选择所在类目。
3、“\assets”目录下还截图了一些常用的材料把对应图地址配置到设置中即可。
4、在配置中填入新的材料图片地址例如assets/niujiao.png
四、建议直接加入每日执行的调度器就可以如果参量质变仪在CD会自动结束任务。
五、后言
1、测试阶段如有错误请QQ119996800联系反馈。
2、官方刚释放了图片和文字识别的API一些用法还没太懂我自己在这基础封装一下打包后方便后续复用。
六、更新说明
v.1.1 20250426
1、修改下拉菜单次数适配4K分辨率。
v.1.2版本20250512
1、更改UID识别方法。适配原神UI改变