autojs Shell – Shell命令
shell函数 shell(cmd[, root]) Shell new Shell(root) Shell.exec(cmd) Shell.exit() Shell.exitAndWaitFor() Shell.setCallback(c...
shell函数 shell(cmd[, root]) Shell new Shell(root) Shell.exec(cmd) Shell.exit() Shell.exitAndWaitFor() Shell.setCallback(c...
Sensors sensors.register(sensorName[, delay]) sensors.unregister(emitter) sensors.unregisterAll() sensors.ignoresUnsuppo...
module (模块) module (模块)# Stability: 2 – Stable Auto.js 有一个简单的模块加载系统。 在 Auto.js 中,文件和模块是一一对应的(每个文件被视为一个独立的模块)。 例子,假...
Media media.scanFile(path) media.playMusic(path[, volume, looping]) media.musicSeekTo(msec) media.pauseMusic() media.res...
Keys back() home() powerDialog() notifications() quickSettings() recents() splitScreen() Home() Back() Power() Menu() Vo...
colors colors.toString(color) colors.red(color) colors.green(color) colors.blue(color) colors.alpha(color) colors.rgb(re...
全局变量与函数 sleep(n) currentPackage() currentActivity() setClip(text) getClip() toast(message) toastLog(message) waitForActi...
Files files.isFile(path) files.isDir(path) files.isEmptyDir(path) files.join(parent, child) files.create(path) files.cre...
Events events.emitter() events.observeKey() events.onKeyDown(keyName, listener) events.onKeyUp(keyName, listener) events...
Engines engines.execScript(name, script[, config]) engines.execScriptFile(path[, config]) engines.execAutoFile(path[, co...