看客
看客 - 认证专家

注册于 4年前

回答
9
文章
0
关注者
1

function getColor()--找色转视频
    local b = getColor (370,1184)
    while true do
        if b == 0x3C78FF then 
            touchDown(0,370,1184);    
            touchUp(0, 370,1184);
            mSleep(500)
            break
        else
            mSleep(5000)
        end
    end
end
function main()
    getColor()
end

file = io.open("/var/touchelf/scripts/账号.txt","r")
team={}
local a=0
for l in file:lines() do
    a=a+1
    l=    string.gsub(l,"\r","")
    l=    string.gsub(l,"\n","")
    team[a]=l
end    
file:close()
file3 = io.open("/var/touchelf/scripts/计数.txt","r");
if file then 
    zhn1 = file3:read()
    file3:close();
    zhn1 = tonumber(zhn1);
else
    zhn1 = 1
end
for i = zhn1,#team do
    account,password = 分割(team[i])
    inputText(account)
    inputText(password)
    logfile = io.open("/var/touchelf/scripts/计数.txt","w")
    logfile:write(i+1)
    logfile:close()
end

file = io.open("/var/touchelf/scripts/账号.txt","r") --打开一个文件,并返回句柄
team={}
local a=0
for l in file:lines() do

a=a+1
l=    string.gsub(l,"\r","")
l=    string.gsub(l,"\n","")
team[a]=l

end
file:close()
file3 = io.open("/var/touchelf/scripts/计数.txt","r");
if file then

zhn1 = file3:read()
file3:close();
zhn1 = tonumber(zhn1);

else

zhn1 = 1

end
for i = zhn1,#team do

account,password = 分割(team[i])
inputText(account)
inputText(password)
logfile = io.open("/var/touchelf/scripts/计数.txt","w")
logfile:write(i)
logfile:close()

end

starttime = os.time()
math.randomseed(os.time())
endtime = math.random(0,30*60)
while true do

if os.time()-starttime>=endtime then
    click(x,y)
    break
end

end

function sjtouch(x,y,n,m,t)
if t ~= nil then

t=t

else

t=0
end

touchDown( 0,x, y)
sjtime(n,m)
touchUp(0)
mSleep(t)
end
变量t可选,可填可不填

你可以把文本内的每行内容都读取到数组里面,然后删除文本或者w模式写入空字符覆盖原有文本,再把数组里面内容依次写入文本,跳过所要删除的那行

你可以建个ftp服务器,需要用的时候,到服务器下载

发布
问题