提问请将问题描述清楚是什么设备,什么机型,什么系统,触摸版本是多少
提问请将问题描述清楚是什么设备,什么机型,什么系统,触摸版本是多少
function findColorPro(first,color,sim,x1,y1,x2,y2)
local Arr = {}
local colorArr = Split(color,",")
table.insert(Arr,first)
for k,v in pairs(colorArr) do
local colorArrs = Split(v,"|")
for k2,v2 in pairs(colorArrs) do
table.insert(Arr,tonumber(v2))
end
end
x, y = findMultiColorInRegionFuzzy(Arr,sim,x1,y1,x2,y2)
if x ~= -1 and y ~= -1 then
return true
else
return false
end
end
function Split(szFullString, szSeparator)
local nFindStartIndex = 1
local nSplitIndex = 1
local nSplitArray = {}
while true do
local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex)
if not nFindLastIndex then
nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString))
break
end
nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1)
nFindStartIndex = nFindLastIndex + string.len(szSeparator)
nSplitIndex = nSplitIndex + 1
end
return nSplitArray
end
function main()
if findColorPro(0x181F85, "29|1|0x00BBFE,103|-4| 0x0B6BBE,65|9|0x150972", 100, 0, 0, 639, 959) then
notifyMessage("yes");
else
notifyMessage("no");
end
end
Cydia里能升级的都升级一下
没加载socket,加一句
socket = require("socket");
function find(path)
return io.popen("find "..path.." -prune");
end
function main()
file = find("/var/touchelf/scripts/*.lua");
if file then
files = file:read("*a");
file:close();
logDebug(files); --这里返回的是scripts目录下所有的lua文件,每行一个
end
end
使用appBundlePath("包名")获取到应用的主程序目录.在主程序目录中有一个iTunesMedadata.plist文件,里面记录了软件的信息,其中bundleVersion就是版本号.这个版本号不是传统意义上的 1.2.3这样的版本号.已某宝为例
bundleVersion的值为build中的12411081 并非是9.2.3
添加官方源下载,cydia.touchelf.com 12.4建议使用测试版.374之前的版本是不支持12系统的.
网页端是自己写的吗?发出来看下,有可能是网页有看不见的换行等问题
local sqlite3 = require("lsqlite3")--加载sqlite3模块
local db = sqlite3.open("xxxxx")--打开数据库
db:exec("Select Message From Chat_xxxxx Limit 1", function (ud, ncols, values, names)
for k,v in pairs(values) do
logDebug(v)
end
return sqlite3.OK
end)
db:close();--关闭数据库
也不知道你数据库名字,也不知道你的表是不是发全了.你试试下面的代码吧.不行在把数据库发到892142@qq.com的邮箱. xxxxx的地方自己补全内容.输出到文本修改logDebug的地方就可以
代码发不上来.给你个截图吧
升级cydia
有问题,a要是空的话就不会关闭了。
听描述像是内存溢出,或者误删了系统文件导致的。使用清理函数并不会造成你描述的情况,不知道你有没有重启过手机,内存溢出的话重启手机会恢复正常,误删系统文件重启会导致白苹果。如果误删了系统文件就平刷解决。
文本需要utf8无bom编码。使用记事本编辑的文本是无法使用的。建议使用notepad编辑文本
问 触摸精灵录好的脚本播放没反应