lua 脚本安装
http://www.runoob.com/lua/lua-environment.html
Mac OS X 系统上安装
curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
tar zxf lua-5.3.0.tar.gz
cd lua-5.3.0
make
$ sudo make install // 一定要 sudo
https://www.zybuluo.com/lisaisacat/note/783791
函数:touchDown、touchUp、touchMove 触摸点击、滑动
函数:getDeviceOrient 获取手机、应用屏幕方向(仅支持 iOS)
函数:setDeviceOrient 设置屏幕方向(仅支持 iOS)
函数:getColor、getColorRGB 获取屏幕某点颜色值
函数:findColorInRegionFuzzy 区域模糊找色
函数:findImageInRegionFuzzy 区域模糊找图
函数:findMultiColorInRegionFuzzy 区域多点找色
函数:findMultiColorInRegionFuzzyExt 高级区域多点找色
函数:imageOperMerge 图片合并(仅支持 iOS)
函数:removeAllContactsFromAB 清空通讯录
函数:switchTSInputMethod 切换到触动/帮你玩输入法(仅支持 Android)
函数:getInPutMethod 获取当前输入法包名(仅支持 Android)
函数:doublePressHomeKey 双击 HOME 键(仅支持 iOS)
函数:keyDown、keyUp 模拟键盘(仅支持 iOS)
函数:appDataPath 获取应用数据路径(仅支持 iOS)
函数:ipaInstall、ipaUninstall 安装、卸载应用(仅支持 iOS)
函数:install, uninstallApp 安装、卸载应用程序(仅支持 Android)
函数:isInstalledApk 查询应用程序是否安装(仅支持 Android)
函数:cleanApp 清理应用数据(仅支持 Android)
函数:getTSVer、getOSVer 获取引擎版本号、获取系统版本号
函数:getDeviceAlias 获取设备别名(仅支持 iOS 企业版)
函数:setDeviceName 设置设备名称(仅支持 iOS)
函数:getIMEI 获取设备 IMEI(仅支持 Android)
函数:getNetworkIP 获取网络 IP(仅支持 Android)
函数:getDeviceBrand 获取设备品牌(仅支持 Android)
函数:getDeviceModel 获取设备型号(仅支持 Android)
函数:getCPUType 获取 CPU 型号(仅支持 Android)
函数:getUUID 获取 UUID(仅支持 Android)
函数:getSDCardPath 获取 SD 卡路径(仅支持 Android)
函数:getDPI 获取屏幕 DPI 和像素密度(仅支持 Android)
函数:setRotationLockEnable 锁定设备方向(仅支持 iOS)
函数:setVPNEnable VPN 开关(仅支持 iOS)
函数:setCellularDataEnable 蜂窝网络开关(仅支持 iOS)
函数:setAssistiveTouchEnable 小圆点开关(仅支持 iOS)
函数:setReduceMotionEnable 减弱动效开关(仅支持 iOS)
函数:playAudiostopAudio 播放音频、停止播放
函数:resetIDLETimer 重置锁屏计时(仅支持 iOS)
函数:setScreenResolution 修改分辨率(仅支持 iOS)
函数:clearKeyChain 清除钥匙串(仅支持 iOS)
函数:saveVideoToAlbum 视频存入相册(仅支持 iOS)
函数:writePasteboard、readPasteboard 读写剪贴板
函数:addTSOcrDict、addTSOcrDictEx、tsOcrText、tsFindText 触动点阵识别
函数:addDmOcrDict、dmOcrText、dmFindText 打码点阵识别
函数:deviceIsAuth 获取触动精灵授权状态(仅支持 iOS)
函数:getRunningAccess 获取当前脚本运行权限(仅支持 Android)
函数:thread.createSubThread 创建子协程
函数:thread.clearTimeout 清除协程超时时间
函数:thread.waitAllThreadExit 协程阻塞等待
函数:fwGetPressedButton 获取按钮点击事件
函数:ocr.cloudOcrText、ocr.cloudOcrReportError、ocr.version