mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-25 04:59:52 +08:00
fix(AutoPlan): 调整自动化脚本执行间隔和界面切换逻辑
- 将计划执行间隔从 1 秒增加到 3 秒 - 在界面切换后添加延迟以确保操作稳定 - 在地图打开操作前添加延迟等待
This commit is contained in:
@@ -176,7 +176,7 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) {
|
||||
async function autoRunList(autoRunOrderList) {
|
||||
//计划执行
|
||||
for (const item of autoRunOrderList) {
|
||||
await sleep(1000)
|
||||
await sleep(3000)
|
||||
if (item.runType === config.user.runTypes[0]) {
|
||||
await autoDomain(item.autoFight);
|
||||
} else if (item.runType === config.user.runTypes[1]) {
|
||||
|
||||
@@ -49,10 +49,12 @@ async function ocrPhysical(opToMainUi = false,openMap=false,minPhysical=20,isRes
|
||||
log.debug(`===开始识别原粹树脂===`)
|
||||
let ms = 1000 // 定义操作延迟时间(毫秒)
|
||||
if (opToMainUi) {
|
||||
await sleep(ms)
|
||||
await toMainUi(); // 切换到主界面
|
||||
}
|
||||
|
||||
if (openMap){
|
||||
await sleep(ms)
|
||||
//打开地图界面
|
||||
await keyPress('M')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user