大大你好~想請教一下...
我想寫一個區域找色以後,點擊我的技能座標,但是執行以後
沒有出現語言錯誤,但是也沒有反應,一直找不出問題,能否請大大指點一二...
=================================================
-- 脚本描述
DESCRIPTION="b";
-- 适用屏幕参数
SCREEN_RESOLUTION="1080x1920";
SCREEN_COLOR_BITS=4;
-- 主入口
function main()
x, y = findColorInRegionFuzzy(0x009EFF,90,0,0,833,1915);
if flag then
(if x ~= -1 and y ~= -1 then <--改上這一行也是沒反應)
touchDown(0,81,1545);
msleep(500);
touchUp(0);
msleep(500);
touchDown(0,81,1545);
msleep(500);
touchUp(0);
msleep(500);
touchDown(0,81,1545);
msleep(500);
touchUp(0);
msleep(500);
touchDown(0,697,82);
msleep(500);
touchUp(0);
msleep(500);
end
end
|