From b511646ad69e8698f54e8ded95d6627ccfcc4452 Mon Sep 17 00:00:00 2001 From: skyflag2022 <107539971+skyflag2022@users.noreply.github.com> Date: Mon, 5 Jan 2026 11:07:03 +0800 Subject: [PATCH] Delay (#2622) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加延迟 * 继续增加延迟 * Update main.js --- repo/js/营养袋吃药统计/main.js | 13 ++++++++++++- repo/js/营养袋吃药统计/manifest.json | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/repo/js/营养袋吃药统计/main.js b/repo/js/营养袋吃药统计/main.js index f55a0498a..9e01c9602 100644 --- a/repo/js/营养袋吃药统计/main.js +++ b/repo/js/营养袋吃药统计/main.js @@ -472,13 +472,17 @@ const confirmButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("a async function getFoodNum(){ keyPress("B");//打开背包 await handleExpiredItems(); //处理过期物品弹窗 - await sleep(1000); + await sleep(500); click(863, 51);//选择食物 + await sleep(1000); await findAndClick(filterButtonRo);//筛选 await sleep(1000); await findAndClick(searchInterfaceRo,50,false);//搜索界面 + await sleep(200); await findAndClick(resetButtonRo);//重置按钮 + await sleep(200); await findAndClick(researchRo);//搜索输入框 + await sleep(200); inputText(recoveryFoodName); await findAndClick(confirmButtonRo);//确认按钮 await sleep(1000); @@ -492,9 +496,13 @@ const confirmButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("a await sleep(1000); } await findAndClick(filterButtonRo);//筛选 + await sleep(500); await findAndClick(searchInterfaceRo,50,false);//搜索界面 + await sleep(200); await findAndClick(resetButtonRo);//重置按钮 + await sleep(200); await findAndClick(researchRo);//搜索输入框 + await sleep(200); inputText(resurrectionFoodName); await findAndClick(confirmButtonRo);//确认按钮 await sleep(1000); // 增加等待时间 @@ -508,8 +516,11 @@ const confirmButtonRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("a await sleep(1000); } await findAndClick(filterButtonRo);//筛选 + await sleep(200); await findAndClick(searchInterfaceRo,50,false);//搜索界面 + await sleep(200); await findAndClick(resetButtonRo);//重置 + await sleep(200); await findAndClick(confirmButtonRo);//确认按钮 await genshin.returnMainUi(); return { recoveryNumber, resurrectionNumber }; diff --git a/repo/js/营养袋吃药统计/manifest.json b/repo/js/营养袋吃药统计/manifest.json index 973e8700e..97a2f59dd 100644 --- a/repo/js/营养袋吃药统计/manifest.json +++ b/repo/js/营养袋吃药统计/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "吃药统计", - "version": "1.4.2", + "version": "1.4.3", "bgi_version": "0.51", "description": "用于统计指定两个食物的消耗,推荐锄地前后使用", "authors": [