按键精灵6游戏挂机脚本不会捡东西的问题。

脚本除了最后一行多了个莫明的endfor外,没有任何问题,

按照你的说法,我建议你用调试模式,检测变量状态,修改如下

然后在编辑状态,点调试,然后让游戏和按键精灵调试窗口并排,看看游戏中出现非箱子时到底是什么状态

KeyDown 17,1

Delay 1000

VBSCall FindPic(6,25,798,529,"红包.bmp",0.9,ss,rr)

//区域找色,寻找红包

If ss>=0 and rr>=0

TracePrint "红包"&ss

TracePrint "红包"&rr

Delay 10

MoveTo ss+45,rr+3

Delay 10

KeyUp 16,1

Delay 50

LeftClick 1

Delay 1000

KeyDown 16,1

EndIf

Delay 50

VBSCall FindPic(6,25,798,529,"baoxiang.bmp",0.9,ss,rr)

//区域找色,寻找宝箱

If ss>=0 and rr>=0

TracePrint "baoxiang"&ss

TracePrint "baoxiang"&rr

Delay 10

MoveTo ss+45,rr+3

Delay 10

KeyUp 16,1

Delay 50

LeftClick 1

Delay 1000

KeyDown 16,1

EndIf

Delay 50

VBSCall FindPic(6,25,798,529,"蓝宝石.bmp",0.9,ss,rr)

//区域找色,寻找蓝宝石

If ss>=0 and rr>=0

TracePrint "蓝宝石"&ss

TracePrint "蓝宝石"&rr

Delay 10

MoveTo ss+45,rr+3

Delay 10

KeyUp 16,1

Delay 50

LeftClick 1

Delay 1000

KeyDown 16,1

EndIf

Delay 50

KeyUp 17,1