diff --git a/repo/js/SwitchAccountMultipleMode/main.js b/repo/js/SwitchAccountMultipleMode/main.js index 614bffbb2..264608c00 100644 --- a/repo/js/SwitchAccountMultipleMode/main.js +++ b/repo/js/SwitchAccountMultipleMode/main.js @@ -520,7 +520,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { keyDown("VK_MENU"); await sleep(500); for (let i = 0; i <= 4; i++) { - await click(genshin.width / 2.0, genshin.height * 0.8); + await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); await sleep(1000); } } finally { @@ -584,7 +584,7 @@ async function recognizeTextAndClick(targetText, ocrRegion, timeout = 8000) { keyDown("VK_MENU"); await sleep(500); for (let i = 0; i <= 4; i++) { - await click(genshin.width / 2.0, genshin.height * 0.8); + await click(math.round(genshin.width / 2.0), math.round(genshin.height * 0.8)); await sleep(1000); } //keyUp("VK_MENU"); diff --git a/repo/js/SwitchAccountMultipleMode/manifest.json b/repo/js/SwitchAccountMultipleMode/manifest.json index c78faaaa8..3e70e5d26 100644 --- a/repo/js/SwitchAccountMultipleMode/manifest.json +++ b/repo/js/SwitchAccountMultipleMode/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "切换账号多模式", - "version": "1.0", + "version": "1.1", "bgi_version": "0.49.0", "description": "多种模式的切换账号,有下拉列表、填写账号密码,OCR操作或键鼠操作\n免责申明:所有的账号密码均保存在本地,请使用者妥善保管账号密码,请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。", "tags": [