requestScreenCapture();
window = floaty.rawWindow(
<vertical>
<button id="开始" text="开始" />
<button id="结束" text="结束" />
</vertical>
)
window.开始.click(function (a) {
if (a) {
var path = $files.path("./弹幕.js");
engines.execScriptFile(path);
}
})
window.结束.click(function (b) {
engines.stopAll();
})
setInterval(() => { }, 1000);
window.setPosition(0, 1299);