From 62c0b4149a43d9a949f4b2b4062a67c240578e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E5=AF=BB?= <94741102+HLfromZ@users.noreply.github.com> Date: Fri, 21 Feb 2025 16:14:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B7=B3=E8=BF=87=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=8A=A8=E7=94=BB=E7=9A=84js=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20(#351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "repo/js/\346\227\266\347\236\254/main.js" | 28 +++++++++++++++++++ .../\346\227\266\347\236\254/manifest.json" | 13 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 "repo/js/\346\227\266\347\236\254/main.js" create mode 100644 "repo/js/\346\227\266\347\236\254/manifest.json" diff --git "a/repo/js/\346\227\266\347\236\254/main.js" "b/repo/js/\346\227\266\347\236\254/main.js" new file mode 100644 index 00000000..f485d143 --- /dev/null +++ "b/repo/js/\346\227\266\347\236\254/main.js" @@ -0,0 +1,28 @@ +(async function () { + // 设置游戏分辨率和DPI缩放 + setGameMetrics(1920, 1080, 1); + + async function cancelAni() { + moveMouseTo(200, 200); + leftButtonDown(); + await(10); + leftButtonUp(); + } + + // 点击确认 + await click(1500,1000); + + // 跳过调整动画 + await sleep(1); + await cancelAni(); + await sleep(1000); + await click(45,715); + + // 重新进入调时间界面以消除调时间的声音 + await sleep(600); + await keyPress("Escape"); + + // 退出派蒙界面 + await sleep(600); + await keyPress("Escape"); +})(); diff --git "a/repo/js/\346\227\266\347\236\254/manifest.json" "b/repo/js/\346\227\266\347\236\254/manifest.json" new file mode 100644 index 00000000..a0c55145 --- /dev/null +++ "b/repo/js/\346\227\266\347\236\254/manifest.json" @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "时瞬", + "version": "1.0", + "bgi_version": "0.42.0", + "description": "手动旋转指针到目标时间,执行此脚本帮你点击确定并跳过时间变动的动画", + "authors": [ + { + "name": "子寻" + } + ], + "main": "main.js" +}