编辑保存后,脚本信息提示:
语法错误:脚本 A汉堡陆港内1 ,第129行,第1个字符:(错误码0)缺少符号。这是我写的一个子程序,一直好好的。今天编辑脚本的其它地方时,来了这么一个提示......
单独把子程序和另外两个函数复制到另一个脚本调试,一切正常。就是这个脚本里提示有问题,又找不到问题点......
把这个子程序删除后,继续提示下一个子程序缺少符号.........我凌乱了。
(错误码0)表示什么?怎么找这个问题点?
这脚本3千多行,提示的129行就是没问题......
//=====以下都是子程序==========================
//============================
Sub 加工鳕鱼
//(这里是第129行,脚本前面有MS=160赋值) Delay 30
For 3
Delay 100
KeyPress "F12", 1
Delay 800
FindPic 0,0,800,600,"Attachment:\保管书.bmp",0.85,intX,intY
If intX > 0 And intY > 0 Then
TracePrint "找到保管书的坐标为:(" & intX & ", " & intY & ")"
MoveTo intX + 20, intY + 20
Delay MS
LeftClick 1
Delay 400
KeyPress "Enter", 1
Delay 600
Exit For
Else
Delay 10
TracePrint "没有打开物品使用,继续"
End If
Next
Delay 100
MoveTo 400, 100//移开鼠标
Delay MS
Rem 找鳕鱼
MouseWheel - 3
Delay 100
FindPic 0,0,800,600,"Attachment:\鳕鱼.bmp",0.8,intX,intY
If intX > 0 And intY > 0 Then
Delay 20
TracePrint "找到鳕鱼的坐标为:(" & intX & ", " & intY & ")"
MoveTo intX + 20, intY + 18
Delay MS
LeftClick 1
Delay 400
Else
Delay 20
TracePrint "没找到鳕鱼继续往下翻"
Delay 20
Goto 找鳕鱼
End If
Delay 50
KeyPress "Enter", 1
Delay 600
Call 最大量()
Delay MS
Call 结束生产()
Delay MS
End Sub