JS脚本: 摧毁圣遗物添加区域限制 (#1128)

* JS脚本: 摧毁圣遗物添加区域限制
This commit is contained in:
起个名字好难的喵
2025-06-19 02:46:46 +08:00
committed by GitHub
parent 99cf48b490
commit 0586349304
2 changed files with 13 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ const DeleteButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("As
const AutoAddButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("Assets/RecognitionObject/AutoAddButton.png"));
const ConfirmButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("Assets/RecognitionObject/ConfirmButton.png"));
const DestoryButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("Assets/RecognitionObject/DestoryButton.png"));
const MidDestoryButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("Assets/RecognitionObject/DestoryButton.png"), 900, 600, 500, 300);
/**
* @returns {Promise<void>}
@@ -56,7 +57,7 @@ const DestoryButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("A
await sleep(600);
captureGameRegion().find(DestoryButtonRo).click();// 点击摧毁
await sleep(600);
captureGameRegion().find(DestoryButtonRo).click();// 弹出页面点击摧毁
captureGameRegion().find(MidDestoryButtonRo).click();// 弹出页面点击摧毁
await sleep(600);
click(960, 1000);// 点击空白处
await sleep(1000);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "摧毁圣遗物换摩拉",
"version": "1.0",
"version": "1.1",
"bgi_version": "0.44.6",
"description": "图像识别改造版",
"authors": [