js脚本: 退出游戏到桌面 (#1063)
* Add files via upload add js ExitGametoDesktop * Update manifest.json
This commit is contained in:
10
repo/js/ExitGametoDesktop/main.js
Normal file
10
repo/js/ExitGametoDesktop/main.js
Normal file
@@ -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);//点击确定
|
||||||
|
})();
|
||||||
13
repo/js/ExitGametoDesktop/manifest.json
Normal file
13
repo/js/ExitGametoDesktop/manifest.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user