加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

lua 函数(3)

发布时间:2020-12-14 21:52:56 所属栏目:大数据 来源:网络整理
导读:前言 getNetTime、writePasteboard、frontAppBid、catchTouchPoint、appBundlePath getNetTime() 获取网络时间从1970年到现在 eg: time =getNetTime() day=os.date( " %Y / %m / %d %X " , time ) writePasteboard(string) 写入粘贴板 readPasteboard() 读取

前言

getNetTime、writePasteboard、frontAppBid、catchTouchPoint、appBundlePath

getNetTime() 获取网络时间从1970年到现在

eg:time=getNetTime() 
day=os.date("%Y/%m/%d %X",time)

writePasteboard(string)

写入粘贴板

readPasteboard()

读取粘贴板

eg:writePasteboard("a lucky dog") 
content=readPasteboard()
        flag = readPasteboard();    --读出剪贴板内容

getTSVer() 获取ts的版本号

getOSVer() 获取操作系统的版本号

eg:ver=getTSVer() ver=getOSVer() 

frontAppBid()

获取前台进程的包名

eg:bid=frontAppBid() 

luaExitIfCall(Flag) 当有来电时结束脚本

eg:luaExitIfCall(true)

catchTouchPoint()

获取用户点击的坐标
eg:x,y=catchTouchPoint()

appBundlePath(bid)

获取应用安装的路径

eg:appPath = appBundlePath("com.taptap")

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读