自己写的按键精灵的小游戏脚本,求高手帮忙改下,老是乱跑
//领任务RemaKeyPress"Left",1Delay200FindPic1000,0,1700,520,"Attachment:\lingrenwu.bmp",0...
//领任务
Rem a
KeyPress "Left", 1
Delay 200
FindPic 1000,0,1700,520,"Attachment:\lingrenwu.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就领任务
//领任务操作
KeyPress "Up", 1
Delay 200
KeyPress "Space", 1
Delay 200
KeyPress "Space", 1
Delay 200
KeyPress "Space", 1
Delay 3000
End If
FindPic 1000,0,1700,520,"Attachment:\lingrenwuchao.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就取消任务
//取消任务操作
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
//领任务到交任务
KeyDown "Right", 1
Delay 7000
KeyUp "Right", 1
Delay 100
KeyDown "Down", 1
Delay 2000
KeyUp "Down", 1
Delay 200
KeyDown "Right", 1
Delay 7000
KeyUp "Right", 1
KeyPress "Right", 1
FindPic 1000,0,1700,520,"Attachment:\jiaorenwu.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就交任务
//交任务
KeyPress "Up", 1
Delay 200
KeyPress "Space", 1
Delay 500
KeyPress "Space", 1
Delay 500
KeyPress "Space", 1
Delay 5000
KeyPress "Space", 1
Delay 1000
//存档并读档
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 2000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
FindPic 1000,0,1700,520,"Attachment:\jiaorenwuchao.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就取消任务
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
这是我自己写的小游戏的脚本,运行老是不正常,目的我写进里面了 求高手帮忙改改 展开
Rem a
KeyPress "Left", 1
Delay 200
FindPic 1000,0,1700,520,"Attachment:\lingrenwu.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就领任务
//领任务操作
KeyPress "Up", 1
Delay 200
KeyPress "Space", 1
Delay 200
KeyPress "Space", 1
Delay 200
KeyPress "Space", 1
Delay 3000
End If
FindPic 1000,0,1700,520,"Attachment:\lingrenwuchao.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就取消任务
//取消任务操作
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
//领任务到交任务
KeyDown "Right", 1
Delay 7000
KeyUp "Right", 1
Delay 100
KeyDown "Down", 1
Delay 2000
KeyUp "Down", 1
Delay 200
KeyDown "Right", 1
Delay 7000
KeyUp "Right", 1
KeyPress "Right", 1
FindPic 1000,0,1700,520,"Attachment:\jiaorenwu.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就交任务
//交任务
KeyPress "Up", 1
Delay 200
KeyPress "Space", 1
Delay 500
KeyPress "Space", 1
Delay 500
KeyPress "Space", 1
Delay 5000
KeyPress "Space", 1
Delay 1000
//存档并读档
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 2000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
FindPic 1000,0,1700,520,"Attachment:\jiaorenwuchao.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //找到这幅图就取消任务
KeyPress "Esc", 1
Delay 1000
KeyPress "Left", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
KeyPress "Down", 1
Delay 500
KeyPress "Down", 1
Delay 500
KeyPress "Space", 1
Delay 1000
KeyPress "Space", 1
Delay 1000
End If
这是我自己写的小游戏的脚本,运行老是不正常,目的我写进里面了 求高手帮忙改改 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询