請問我是NOTE2 800x1280
腳本運行後出現
lua:11 unexpected symbol near char(194)
然後我有去google
說是未知字符
-----------------------
5、未知字符
lua:xx: unexpected symbol near char(xxx)
【报错解读】
程序第xx行有误:临近某字符处有非预期字符
【原因分析】
char(xxx)表示,该字符非ASCII字符,但形似ASCII码为xxx对应的字符
一般是使用了中文符号导致,也可能用了lua不识别的字符。
------------------------------------------
這是我的腳本
-- 脚本描述
DESCRIPTION="A";
-- 适用屏幕参数
SCREEN_RESOLUTION="800x1280";
SCREEN_COLOR_BITS=4;
-- 主入口
function main()
::lab::
mSleep(1000)
dianx,diany=findColorInRegion(0xFF0000,140,260,160,1280)
if dianx==-1 and diany==-1 then
goto lab
end
juli=diany-240
changdu=150+juli
if
changdu>740
then
changdu=740
end
mSleep(1000)
touchDown(1,150,610)
::lab1::
c=getColor(changdu,240)
if
c~=0xFF0000
then
mSleep(1)
goto lab1
end
touchUp(1)
end
--------------
請問哪裡出問題阿 謝謝 |
評分
-
查看全部評分

|