• 按键公众号 :
按键精灵电脑版
立即下载

软件版本:2014.06
软件大小:22.9M
更新时间:2021-12-03

按键精灵安卓版
立即下载

软件版本:4.1.1
软件大小:45M
更新时间:2025-09-09

按键精灵iOS版
立即下载

软件版本:2.4.2
软件大小:29.2M
更新时间:2025-09-24

按键手机助手
立即下载

软件版本:4.4.1
软件大小:242M
更新时间:2025-09-09

快捷导航

登录 后使用快捷导航
没有帐号? 注册

发新话题 回复该主题

[问题] 我的脚本一直发生错误无法正常执行 有前辈能帮我看看吗? [复制链接]

1#
目前使用按键精灵2014版本PC
以下这是错误讯息
您的腳本存在下列錯誤,將不能正常運行:

詞法錯誤:腳本 我的腳本1 ,第29行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第29行,第49個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第42行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第42行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第51行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第51行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第60行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第60行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第71行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第71行,第49個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第104行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第104行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第108行,第31個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第117行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第117行,第49個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第131行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第131行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第135行,第31個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第145行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第145行,第49個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第180行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第180行,第49個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第194行,第43個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第194行,第50個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第205行,第42個字符:(錯誤碼0)無法正確識別。
詞法錯誤:腳本 我的腳本1 ,第205行,第49個字符:(錯誤碼0)無法正確識別。
語法錯誤:腳本 我的腳本1 ,第5行,第6個字符:(錯誤碼0)沒有找到合法的符號。
語法錯誤:腳本 我的腳本1 ,第6行,第6個字符:(錯誤碼0)沒有找到合法的符號。
語法錯誤:腳本 我的腳本1 ,第13行,第6個字符:(錯誤碼0)沒有找到合法的符號。
語法錯誤:腳本 我的腳本1 ,第15行,第6個字符:(錯誤碼0)沒有找到合法的符號。
語法錯誤:腳本 我的腳本1 ,第20行,第1個字符:(錯誤碼0)沒有找到合法的符號。
語法錯誤:腳本 我的腳本1 ,第25行,第1個字符:(錯誤碼0)沒有找到合法的符號。


以下这是脚本
[variable]
var1=13553614
var2=-1
var3=4350422
var4=
var5=
var6=19661252
var7=-1
var8=-1
pos1=20971955
pos2=20644371
pos3=22151639
pos4=
pos5=19399060
pos6=
pos7=-1
pos8=19071480
[script]
Var1
If Color[40435895]=6515059
KeyPress(116)
Delay(50)
KeyPress(116)
Delay(50)
End If

s:
Delay(1000)
Pos8 = GetColorPos[4350422,Xy2Pos[317,234],300,1] //怪物顏色 設定300範圍因為魔法無法施放太遠
If Pos8 > -1 //如果偵測到
While Pos8 > -1
//Left Down Var4 + XY2Pos[5,40]
MouseMove Pos8 //滑鼠移動到偵測到的怪物座標
Left down pos8 //滑鼠左鍵單擊偵測到的怪物座標
Delay(500)
//MouseMove 40894922 //怕亂點怪故滑鼠移動到對話框
//Delay(500)
jump A

WEnd
Else
Var2 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血
if post7 > -1 //如果有
While post2 > -1
MouseMove post 2
Left Down post2 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
End If
Else
Var3 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血
if post3 > -1 //如果有
While post3 > -1
MouseMove post 3
Left Down post3 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
End If
Else
Var4 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血
if post4 > -1 //如果有
While post4 > -1
MouseMove post 4
Left Down post4 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
End If
Else
end if
A:
Var6 = GetColorPos[3222569,Xy2Pos[317,234],300,1] //怪物顏色 沒就飛
If Var6 = -1 //如果有
KeyPress(119)
End If

=========================================================
[variable]
var1=13553614
var2=
var3=
var4=
var5=
var6=21823892
var7=-1
var8=-1
pos1=20971955
pos2=20644371
pos3=24576503
pos4=
pos5=19399060
pos6=
pos7=-1
pos8=23658793
[script]
Var1
If Color[40435895]=6515059
KeyPress(116)
Delay(50)
KeyPress(116)
Delay(50)
End If

s:
Var7 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血

if post7 > -1 //如果有
While post7 > -1
MouseMove post 7 + XY2Pos[5,40]
Left Down post7 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
End If
Else
end if

Delay(1000)
Pos8 = GetColorPos[3222569,Xy2Pos[317,234],300,1] //怪物顏色 設定300範圍因為魔法無法施放太遠
If Pos8 > -1 //如果偵測到
While Pos8 > -1
//Left Down Var4 + XY2Pos[5,40]
MouseMove Pos8 //滑鼠移動到偵測到的怪物座標
Left down pos8 //滑鼠左鍵單擊偵測到的怪物座標
Delay(500)
//MouseMove 40894922 //怕亂點怪故滑鼠移動到對話框
//Delay(500)
jump A

WEnd
Else

Var7 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血

if post7 > -1 //如果有
While post7 > -1
MouseMove post 7 + XY2Pos[5,40]
Left Down post7 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
End If
Else
end if


A:
Var6 = GetColorPos[3222569,Xy2Pos[317,234],300,1] //怪物顏色 沒就飛
If Var6 = -1 //如果有

KeyPress(119)

End If
=========================================================
[variable]
var1=13553614
var2=-1
var3=4350422
var4=
var5=
var6=19661252
var7=-1
var8=-1
pos1=20971955
pos2=20644371
pos3=22151639
pos4=
pos5=19399060
pos6=
pos7=-1
pos8=19071480
[script]
Var1
If Color[40435895]=6515059
KeyPress(116)
Delay(50)
KeyPress(116)
Delay(50)
End If

s:
Delay(1000)
Pos8 = GetColorPos[4350422,Xy2Pos[317,234],300,1] //怪物顏色 設定300範圍因為魔法無法施放太遠
If Pos8 > -1 //如果偵測到
While Pos8 > -1
//Left Down Var4 + XY2Pos[5,40]
MouseMove Pos8 //滑鼠移動到偵測到的怪物座標
Left down pos8 //滑鼠左鍵單擊偵測到的怪物座標
Delay(500)
//MouseMove 40894922 //怕亂點怪故滑鼠移動到對話框
//Delay(500)
jump A

WEnd
Else
end if
Var2 = GetColorPos[13553614,Xy2Pos[317,234],100,1] //失血
if pos2 > -1 //如果有
While pos2 > -1
MouseMove pos 2
Left Down pos2 //就在找到的地方按住左鍵不放
delay(50000)
WEnd
Else
End If

A:
Var6 = GetColorPos[3222569,Xy2Pos[317,234],300,1] //怪物顏色 沒就飛
If Var6 = -1 //如果有
KeyPress(119)
End If

发新话题 回复该主题