• 触动官网
  • Introduction
  • 前言
  • 开发指南
  • 学习前的准备
  • 更新记录
  • TSLib 基础扩展库
    • 使用方法和下载
    • 更新日志
    • 函数:TSVersions 获取扩展库版本号
    • 函数:compareVersion 比较版本号
    • 函数:checkTSLibrary 检测加载插件
    • 相关函数
  • ts.so 高级扩展库
    • 使用方法和下载
    • 更新日志
    • 函数:ts.version 获取扩展库版本号
    • 相关函数
  • tsnet.so 高级扩展库
    • 使用方法和下载
    • 函数:TSNETVersion 获取版本号
    • 相关函数
  • tsimg.so 图片扩展库
    • 使用方法和下载
    • 函数:TSImgVersion 获取版本号
    • 相关函数
  • Lua 编程
    • Lua 编程
    • 注释
    • 语句块
    • 赋值语句
    • 循环语句
    • 数值运算
    • 比较运算
    • 逻辑运算
    • 运算符优先级
    • 关键字
    • 变量类型
    • 变量的定义
  • Lua 常用函数
    • 基础函数
    • 函数:type 判断数据类型
    • 函数:require 加载模块
    • 函数:tonumber 将字符串转成数字
    • 函数:tostring 将数字转成字符串
    • 函数:pcall 保护模式调用
    • io 相关函数
    • 函数:io.open 按模式打开文件
    • 函数:io.type 判断句柄
    • 函数:io.read 按模式读取文件
    • 函数:io.write 写入到文件
    • 函数:io.close 关闭文件句柄
    • os 相关函数
    • 函数:os.date 格式化日期
    • 函数:os.time 格式化时间
    • 函数:os.rename 重命名文件(夹)
    • 函数:os.remove 删除文件
    • 函数:os.execute 执行 shell 命令
    • string 相关函数
    • 函数:string.find 查找字符串
    • 函数:string.format 格式化字符串
    • 函数:string.gmatch 全局模式匹配
    • 函数:string.gsub 字符串替换
    • 函数:string.len 获取字符串长度
    • 函数:string.match 字符串查找
    • 函数:string.rep 复制字符串
    • 函数:string.reverse 字符串反转
    • 函数:string.sub 字符串截取
    • 函数:string.upper 小写字母转大写
    • 函数:string.lower 大写字母转成小写
    • 函数:string.byte 字符串转 ASCII 编码
    • 函数:string.char ASCII 编码转字符串
    • table 相关函数
    • 函数:table.concat 数组连接
    • 函数:table.insert 插入数据到数组
  • 基本函数
    • 函数:init 初始化
    • 函数:mSleep 延时
  • 模拟点击
    • 函数:tap 点击
    • 函数:moveTo 滑动
    • 函数:randomTap 随机点击
    • 函数:touchDown 触摸按下
    • 函数:touchUp 触摸抬起
    • 函数:touchMove 触摸移动
    • 函数:catchTouchPoint 获取用户点击坐标
    • 函数:setScreenScale 坐标缩放
    • 函数:xyRotate 坐标转换