我正在尝试编译我的脚本 loops = 100
function OnEvent(event,arg)
如果按键(0x61)则
x1,y1 = GetMousePosition()
端
if keypress(0x62) then
i = 0
while (i<loops) do
if IsModifierPressed("lshift") then
i = loops
end
ReleaseKey("lshift")
if not IsModifierPressed("lshift") then
i=i+1
move1 = math.random(1300,1400)
move2 = math.random(1300,1400)
move3 = math.random(1300,1400)
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(3)
Sleep(math.random(75,100))
ReleaseMouseButton(3)
Sleep(math.random(75,100))
x1 = x1+move1
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(1)
Sleep(math.random(75,100))
ReleaseMouseButton(1)
Sleep(math.random(75,100))
if IsModifierPressed("lshift") then
i = loops
end
ReleaseKey("lshift")
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(3)
Sleep(math.random(75,100))
ReleaseMouseButton(3)
Sleep(math.random(75,100))
x1 = x1+move2
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(1)
Sleep(math.random(75,100))
ReleaseMouseButton(1)
Sleep(math.random(75,100))
if IsModifierPressed("lshift") then
i = loops
end
ReleaseKey("lshift")
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(3)
Sleep(math.random(75,100))
ReleaseMouseButton(3)
Sleep(math.random(75,100))
x1 = x1+move3
MoveMouseTo(x1,y1)
Sleep(math.random(75,100))
PressMouseButton(1)
Sleep(math.random(75,100))
ReleaseMouseButton(1)
Sleep(math.random(75,100))
if IsModifierPressed("lshift") then
i = loops
end
ReleaseKey("lshift")
x1 = x1-move1-move2-move3
end
end
MoveMouseTo(x1,y1)
Sleep(math.random(50,75))
PressMouseButton(3)
Sleep(math.random(50,75))
ReleaseMouseButton(3)
Sleep(math.random(50,75))
x1 = x1+move1
MoveMouseTo(x1,y1)
Sleep(math.random(50,75))
PressMouseButton(1)
Sleep(math.random(50,75))
ReleaseMouseButton(1)
x1 = x1-move1
端 end` 使用免费的pascal编译器进入.exe。每次运行编译器时我都会得到错误(1,6)致命:语法错误,&#34; BEGIN&#34;预期但&#34;标识符LOOPS&#34;发现 致命:编译中止,我对编程很新,我想知道出了什么问题