求大神指教,哪里错误了,微什么在循环的时候不输入“你好”
lua吧
全部回复
仅看楼主
level 3
佳人有曰8 楼主
init("0",0)
luaExitIfCall(true)
mSleep(945)
if getColor (119, 854)==0xf43530 then
repeat
touchDown(1,119,854)
mSleep(63)
touchUp(1,119,854)
mSleep(1540)
touchDown(1,233,908)
mSleep(63)
touchUp(1,241,909)
mSleep(1540)
inputText("你好")
mSleep(82)
touchDown(1,233,908)
mSleep(63)
touchUp(1,241,909)
mSleep(1540)
touchDown(3,580,926)
mSleep(70)
touchUp(3,590,926)
mSleep(2064)
touchDown(5,45,69)
mSleep(46)
touchUp(5,46,60)
until getColor(119, 854)==0xffffff
end
2015年09月05日 11点09分 1
level 11
,,,可能。if没判断xhulai,或者,,,until那里,,until没问题,,,至少只需一遍好像,,我去试试
2015年09月05日 22点09分 2
谢谢大神指点
2015年09月05日 23点09分
运行第一遍都正常,第二遍就不输入了!
2015年09月05日 23点09分
回复
������Ի8
:。until跳出了呗,检查一下until用到的变了[酷]
2015年09月05日 23点09分
回复 协调意志_Tox 那我该怎么弄啊
2015年09月06日 05点09分
level 3
佳人有曰8 楼主
while true do
if getColor (119, 854)==0xf43530 then
touchDown(1,119,854)
mSleep(63)
touchUp(1,119,854)
mSleep(1540)
touchDown(1,233,908)
mSleep(63)
touchUp(1,241,909)
mSleep(1540)
inputText("浣犲ソ")
mSleep(82)
touchDown(1,233,908)
mSleep(63)
touchUp(1,241,909)
mSleep(1540)
touchDown(3,580,926)
mSleep(70)
touchUp(3,590,926)
mSleep(2064)
touchDown(5,45,69)
mSleep(46)
touchUp(5,46,60)
end
end
2015年09月05日 23点09分 3
他俩的毛病是一样的
2015年09月05日 23点09分
回复
������Ի8
:getcolor那个函数返回的是字符串吧?[黑线]你那个0x什么的怎么能直接用!
2015年09月07日 23点09分
1