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) 当有来电时结束脚本
catchTouchPoint()获取用户点击的坐标 appBundlePath(bid)获取应用安装的路径 eg:appPath = appBundlePath("com.taptap")
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |