level 1
鬼城迷音
楼主
k=1
for b=1,j do
click(366,1853);
mSleep(1000)
click(633,480);
mSleep(1000)
file = io.open("/storage/emulated/0/TouchSprite/res/test.txt" ,"r"); --以只读方式打开文件
if file then --如果打开成功
writePasteboard(file:read("*l") ); --储存到剪贴板
string = readPasteboard(); --读出剪贴板内容
mSleep(500); --延迟 0.5 秒
inputText(string); --写出字符串
file:close(); --关闭文件
else
toast("Cannot open: test.txt");
end
k=k+1
click(961,685);
mSleep(i*60000)
end
我想每次读取都只是第一行,k参数不知怎么用?里面有些函数是触动精灵的,所以不要介意其他的,就是每次都读取第一行。
2017年04月23日 03点04分
1
for b=1,j do
click(366,1853);
mSleep(1000)
click(633,480);
mSleep(1000)
file = io.open("/storage/emulated/0/TouchSprite/res/test.txt" ,"r"); --以只读方式打开文件
if file then --如果打开成功
writePasteboard(file:read("*l") ); --储存到剪贴板
string = readPasteboard(); --读出剪贴板内容
mSleep(500); --延迟 0.5 秒
inputText(string); --写出字符串
file:close(); --关闭文件
else
toast("Cannot open: test.txt");
end
k=k+1
click(961,685);
mSleep(i*60000)
end
我想每次读取都只是第一行,k参数不知怎么用?里面有些函数是触动精灵的,所以不要介意其他的,就是每次都读取第一行。