A script to play Sheets generated by SkyStudio automatically in game Sky with accessibility services using Auto.js
使用Auto.js提供的无障碍权限实现在Sky光遇中自动弹奏SkyStudio导出的曲谱
①为Auto.js开启无障碍服务和悬浮窗权限。
②在Auto.js中新建一个脚本并粘贴以下代码:
"ui";
"use strict";
var emitter = events.emitter(threads.currentThread());
threads.start(function() {
emitter.emit("evaluate", http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@" + http.get("https://gitee.com/stageguard/SkyAutoPlayerScript/raw/master/gitVersion").body.string() + "/source/SkyAutoplayer.js").body.string());
});
emitter.on('evaluate', function(s){
eval(s);
});
在Auto.js版本4.1.1 Alpha2 (461)
中测试通过,不保证其他版本的兼容性(取决于其他版本相对于此版本的API是否有breaking changes
)
Auto.js4.1.1 Alpha2 (461)
版本下载: Ericwyn/Auto.js/[email protected]
手机请下载autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk
SkyAutoPlayer在使用过程中会产生本地数据存储,若想全部删除,请使用Auto.js执行以下代码
storages.remove("StageGuard:SkyAutoPlayer:Config");
files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
- 未充分测试,若遇到BUG,请酷安私信@StageGuard或新建Issue来反馈BUG!
- SkyAutoPlayer是完全免费且开源的软件/脚本(https://github.com/StageGuard/SkyAutoPlayerScript),禁止使用本脚本作为盈利用途!
- 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会"正规场合"是什么意思),若因使用本脚本所出现了一些不友好的问题,与脚本作者StageGuard无关。
- 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。
- 本脚本只是一个"弹奏机",并不内置曲谱,请在GooglePlay下载SkyStudio编谱。
欢迎任何人贡献本项目,包括但不限于Pull Request,Issue,New feature request
SkyAutoPlayer (Auto.js script)
Copyright © 2020 StageGuard
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>