diff --git a/README.md b/README.md index c3710de..6e0f4d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,55 @@ # SkyAutoPlayerScript A script to play Sheets generated by SkyStudio automatically in game Sky with accessibility services using Auto.js +使用Auto.js提供的无障碍权限和RootAutomator(未完成)实现在Sky光遇中自动弹奏SkyStudio导出的曲谱 + +## 使用 +在Auto.js中新建一个脚本并粘贴以下代码: +```javascript +"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`) + +## 注意 +### 请仔细阅读以下使用须知! + +1. 未充分测试,若遇到BUG,请酷安私信@StageGuard或新建Issue来反馈BUG! +2. SkyAutoPlayer是完全免费且开源的软件/脚本(https://github.com/StageGuard/SkyAutoPlayerScript),禁止使用本脚本作为盈利用途! +3. 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会\"正规场合\"是什么意思),若因使用本脚本所出现了一些不友好的问题,与脚本作者StageGuard无关。 +4. 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。 + +## 贡献 +欢迎任何人贡献本项目,包括但不限于Pull Request,Issue,New feature request + +## 图标来源 +[Iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/) + +# 鸣谢 +[projectXero](https://gitee.com/projectXero) + +# 许可证协议 +``` + 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 +``` \ No newline at end of file diff --git a/source/wrapper.js b/source/wrapper.js new file mode 100644 index 0000000..bb900f1 --- /dev/null +++ b/source/wrapper.js @@ -0,0 +1,7 @@ +"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);}); \ No newline at end of file