From f029ca3f14a63984a89b5f17d8ca77ae8999e9b8 Mon Sep 17 00:00:00 2001 From: Because66666 <110363085+Because66666@users.noreply.github.com> Date: Thu, 5 Dec 2024 01:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=85=A8=E9=80=80=E5=87=BA=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=EF=BC=88=E9=94=AE=E9=BC=A0=E7=89=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/ExitGame/main.js | 15 +++++++++++++++ repo/js/ExitGame/manifest.json | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 repo/js/ExitGame/main.js create mode 100644 repo/js/ExitGame/manifest.json diff --git a/repo/js/ExitGame/main.js b/repo/js/ExitGame/main.js new file mode 100644 index 00000000..ef61f3d7 --- /dev/null +++ b/repo/js/ExitGame/main.js @@ -0,0 +1,15 @@ +(async function () { + // settings 的对象内容来自于 settings.json 文件生成的动态配置页面 +//前置系统状态:大世界正常主界面 + setGameMetrics(3840,2160,2) + keyPress("VK_ESCAPE");//打开派蒙菜单 + await sleep(1000); + click(90,2000);//点击左下角退出按钮 + await sleep(1000); + click(2100,1500);//点击确定 + await sleep(10000);//渲染开门界面的时间 + click(200,1950);//点击登录界面左下角退出按钮 + await sleep(1000); + click(2200,1100);//点击确定 + await sleep(1000); +})(); \ No newline at end of file diff --git a/repo/js/ExitGame/manifest.json b/repo/js/ExitGame/manifest.json new file mode 100644 index 00000000..da32f10e --- /dev/null +++ b/repo/js/ExitGame/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "完全退出游戏", + "version": "1.0", + "description": "配合其他脚本使用。当其他任务完成之后,调用此脚本完成游戏退出(指结束游戏进程)", + "authors": [ + { + "name": "Because", + "link": "https://github.com/Because66666" + } + ], + "main": "main.js" +} \ No newline at end of file