mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-17 03:43:26 +08:00
fix: 鼠标坐标超出游戏窗口 (#2302)
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "切换账号多模式",
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
"bgi_version": "0.49.0",
|
||||
"description": "多种模式的切换账号,有下拉列表、填写账号密码,OCR操作或键鼠操作\n免责申明:所有的账号密码均保存在本地,请使用者妥善保管账号密码,请勿外泄账号密码。若因使用此脚本导致的账号泄露、封禁问题与脚本作者无关。",
|
||||
"tags": [
|
||||
|
||||
Reference in New Issue
Block a user