From f2768db6fef23c72a666b64dee9995dd2221dd0d Mon Sep 17 00:00:00 2001 From: MeisterZH <98497977+MeisterZH@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:48:32 +0800 Subject: [PATCH] =?UTF-8?q?js=E8=84=9A=E6=9C=AC=EF=BC=9A=20=E9=80=80?= =?UTF-8?q?=E5=87=BA=E6=B8=B8=E6=88=8F=E5=88=B0=E6=A1=8C=E9=9D=A2=20(#1063?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add files via upload add js ExitGametoDesktop * Update manifest.json --- repo/js/ExitGametoDesktop/main.js | 10 ++++++++++ repo/js/ExitGametoDesktop/manifest.json | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 repo/js/ExitGametoDesktop/main.js create mode 100644 repo/js/ExitGametoDesktop/manifest.json diff --git a/repo/js/ExitGametoDesktop/main.js b/repo/js/ExitGametoDesktop/main.js new file mode 100644 index 00000000..17f8b8f6 --- /dev/null +++ b/repo/js/ExitGametoDesktop/main.js @@ -0,0 +1,10 @@ +(async function () { + // settings 的对象内容来自于 settings.json 文件生成的动态配置页面 +//前置系统状态:大世界正常主界面 + setGameMetrics(3840,2160,2) + keyPress("VK_ESCAPE");//打开派蒙菜单 + await sleep(1000); + click(90,2000);//点击左下角退出按钮 + await sleep(1000); + click(2100,1300);//点击确定 +})(); \ No newline at end of file diff --git a/repo/js/ExitGametoDesktop/manifest.json b/repo/js/ExitGametoDesktop/manifest.json new file mode 100644 index 00000000..5df277e0 --- /dev/null +++ b/repo/js/ExitGametoDesktop/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "完全退出游戏到桌面", + "version": "1.0", + "description": "原理基于Because66666的ExitGame, 配合原神更新,一步到位关闭游戏", + "authors": [ + { + "name": "MeisterJ", + "link": "https://github.com/MeisterJ" + } + ], + "main": "main.js" +}