以修正 但是還是語法錯誤
::aa::
x, y = findImage(storage/sdcard0/Touchelper/ABC/拋竿.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(以拋竿);
else
notifyMessage(找不到拋竿)
goto ee
end
end
mSleep(4000);
::bb::
x, y = findImage(storage/sdcard0/Touchelper/ABC/上勾.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(以上勾);
else
notifyMessage(上勾失敗)
goto ee
end
end
mSleep(2000);
::cc::
x, y = findImage(storage/sdcard0/Touchelper/ABC/打x.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(清除確認視窗);
else
notifyMessage(搜尋不到確認視窗)
end
end
mSleep(2000);
::dd::
x, y = findImage(storage/sdcard0/Touchelper/ABC/賣魚.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(成功賣出);
else
notifyMessage(無法賣出)
end
end
mSleep(2000);
::ee::
x, y = findImage(storage/sdcard0/Touchelper/ABC/繼續釣魚.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(繼續釣魚);
else
notifyMessage(找不到繼續釣魚)
end
end
goto aa
mSleep(1000);
::ff::
x, y = findImage(storage/sdcard0/Touchelper/ABC/使用電池.bmp,90);
if x ~= -1 and y ~= -1 then
touchDown(0, x+5, y+5);
click(x, y)
mSleep(1000);
touchDown(0, x+5, y+5);
click(x, y)
notifyMessage(以補電力);
else
notifyMessage(免補電力c)
goto ee
end
end
mSleep(1000);
::gg::
x, y = findImage(storage/sdcard0/Touchelper/ABC/打x.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(補完清除視窗);
else
notifyMessage(搜尋不到確認視窗)
end
end
goto ee
end::aa::
x, y = findImage(storage/sdcard0/Touchelper/ABC/拋竿.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(以拋竿);
else
notifyMessage(找不到拋竿)
goto ee
end
end
mSleep(4000);
::bb::
x, y = findImage(storage/sdcard0/Touchelper/ABC/上勾.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(以上勾);
else
notifyMessage(上勾失敗)
goto ee
end
end
mSleep(2000);
::cc::
x, y = findImage(storage/sdcard0/Touchelper/ABC/打x.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(清除確認視窗);
else
notifyMessage(搜尋不到確認視窗)
end
end
mSleep(2000);
::dd::
x, y = findImage(storage/sdcard0/Touchelper/ABC/賣魚.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(成功賣出);
else
notifyMessage(無法賣出)
end
end
mSleep(2000);
::ee::
x, y = findImage(storage/sdcard0/Touchelper/ABC/繼續釣魚.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(繼續釣魚);
else
notifyMessage(找不到繼續釣魚)
end
end
goto aa
mSleep(1000);
::ff::
x, y = findImage(storage/sdcard0/Touchelper/ABC/使用電池.bmp,90);
if x ~= -1 and y ~= -1 then
touchDown(0, x+5, y+5);
click(x, y)
mSleep(1000);
touchDown(0, x+5, y+5);
click(x, y)
notifyMessage(以補電力);
else
notifyMessage(免補電力c)
goto ee
end
end
mSleep(1000);
::gg::
x, y = findImage(storage/sdcard0/Touchelper/ABC/打x.bmp,90);
if x ~= -1 and y ~= -1 then
click(x, y)
notifyMessage(補完清除視窗);
else
notifyMessage(搜尋不到確認視窗)
end
end
goto ee
end |