Files
bettergi-scripts-list/archive/js/JustMove/main.js
起个名字好难的喵 d69f6e5bc6 地图追踪:香辛果新增30个 (#631)
* 完善归档路径

* 地图追踪:香辛果新增30个
2025-04-22 23:24:07 +08:00

36 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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);
})();