mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-15 03:23:22 +08:00
@@ -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 };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "吃药统计",
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.3",
|
||||
"bgi_version": "0.51",
|
||||
"description": "用于统计指定两个食物的消耗,推荐锄地前后使用",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user