Q&A

# [autoX.js](https://github.com/kkevsekk1/AutoX/releases) >s↑↑↑(建议下载app-v6-universal-release-unsigned-signed版本) ## [aotoxjs文档](http://doc.autoxjs.com/#/) # [官方地址](https://pro.autojs.org/) # [官方文档](https://pro.autojs.org/docs/zh/v8/) # [JavaScript](https://www.w3school.com.cn/js/index.asp) 本文档为私人文档便于用的,也即Auto.js Pro的默认引擎(Rhino犀牛引擎)的文档。如果你从来没有听说过什么第一代API,犀牛引擎,Node.js引擎,那么说明你来对文档了。 #### [autojs4.1](https://github.com/blackcd318/autojs4) 去更新 **## Auto.js Pro常用函数** sleep(n) //延时 toast(message) //通知 toastLog(message) //通知+日志 exit() //退出脚本 random(min, max) //取随机数 launch(packageName) //启动APP openUrl(url) //打开网址 swipe(x1, y1, x2, y2, duration) //滑动 click(text[, i]) //点击文本 selector() //UiObject选择器 back() //模拟返回 images.requestScreenCapture([landscape]) //向系统申请屏幕截图权限 images.captureScreen() //截图 images.findColorEquals(img, color[, x, y, width, height]) //区域找色 http.get(url[, options, callback]) http.post(url, data[, options, callback]) device.width //取屏幕宽度 device.height //取屏幕高度 threads.start(action) //启动线程 log(currentActivity()) //获取当前页面地址