From 36d15e4caee103f3135dfc53080c12840f7b6e47 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Mon, 25 Nov 2024 13:25:01 +0000 Subject: [PATCH 1/3] update repo.json --- repo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo.json b/repo.json index 1f063e21..c800d64b 100644 --- a/repo.json +++ b/repo.json @@ -1,5 +1,5 @@ { - "time": "20241125212123", + "time": "20241125212455", "url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip", "file": "repo.json", "indexes": [ From b89792b6e9a769c22b80a72a8db9147817508e13 Mon Sep 17 00:00:00 2001 From: Traveler07 Date: Mon, 25 Nov 2024 21:54:51 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=9A=84=E5=B0=8F=E8=84=9A=E6=9C=AC=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E7=B2=BE=E7=AE=80=E8=84=9A=E6=9C=AC=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/JustMove/main.js | 36 ++++++++++++++++++++++++++++++++++ repo/js/JustMove/manifest.json | 13 ++++++++++++ repo/js/JustMove/settings.json | 18 +++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 repo/js/JustMove/main.js create mode 100644 repo/js/JustMove/manifest.json create mode 100644 repo/js/JustMove/settings.json diff --git a/repo/js/JustMove/main.js b/repo/js/JustMove/main.js new file mode 100644 index 00000000..88394d93 --- /dev/null +++ b/repo/js/JustMove/main.js @@ -0,0 +1,36 @@ +(async function () { + + timeset=1000*settings.t + domainName = settings.domainName + + switch (domainName) { + case "前(W)": + keyDown("w") + await sleep(timeset); + keyUp("w") + log.info("前(W)移动{time}秒", settings.t) + break; + case "后(S)": + keyDown("s") + await sleep(timeset); + keyUp("s") + log.info("后(S)移动{time}秒", settings.t) + break; + case "左(A)": + keyDown("a") + await sleep(timeset); + keyUp("a") + log.info("左(A)移动{time}秒", settings.t) + break; + case "右(D)": + keyDown("d") + await sleep(timeset); + keyUp("d") + log.info("右(D)移动{time}秒", settings.t) + break; + default: + log.info("未检测到设置,你需要到设置里设置移动方向"); + break; + } + await sleep(timeset); +})(); \ No newline at end of file diff --git a/repo/js/JustMove/manifest.json b/repo/js/JustMove/manifest.json new file mode 100644 index 00000000..128dbd4b --- /dev/null +++ b/repo/js/JustMove/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "只是移动一下", + "version": "1.0", + "description": "用于自定义移动", + "authors": [ + { + "name": "½" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/JustMove/settings.json b/repo/js/JustMove/settings.json new file mode 100644 index 00000000..de5a2161 --- /dev/null +++ b/repo/js/JustMove/settings.json @@ -0,0 +1,18 @@ +[ + { + "name": "domainName", + "type": "select", + "label": "方向", + "options": [ + "前(W)", + "后(S)", + "左(A)", + "右(D)" + ] + }, + { + "name": "t", + "type": "input-text", + "label": "等待时间(单位:秒)" + } +] \ No newline at end of file From fbde00fe289716f81f9563bfaec69748eb6c71cf Mon Sep 17 00:00:00 2001 From: Traveler07 Date: Mon, 25 Nov 2024 13:55:54 +0000 Subject: [PATCH 3/3] update repo.json --- repo.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/repo.json b/repo.json index c800d64b..9238f607 100644 --- a/repo.json +++ b/repo.json @@ -1,5 +1,5 @@ { - "time": "20241125212455", + "time": "20241125215554", "url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip", "file": "repo.json", "indexes": [ @@ -8628,6 +8628,15 @@ "description": "只是等待一下~|~只用于等待,方便在调度器为不同性能的设备配置等待", "tags": [] }, + { + "name": "JustMove", + "type": "directory", + "hash": "b7f32fba15de1c0d7877ea6967167be483ac5ace", + "version": "1.0", + "author": "½", + "description": "只是移动一下~|~用于自定义移动", + "tags": [] + }, { "name": "JustTp", "type": "directory",