自己写的按键精灵的小游戏脚本,求高手帮忙改下,老是乱跑

//领任务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
这是我自己写的小游戏的脚本,运行老是不正常,目的我写进里面了 求高手帮忙改改
展开
 我来答
time遥望天空
2017-10-24 · TA获得超过630个赞
知道小有建树答主
回答量:615
采纳率:74%
帮助的人:62.1万
展开全部
  1. //领任务到交任务      这段你没加判断如果前面的两段都没找到图那就会乱跑了!

  2. KeyDown "Right", 1

  3. Delay 7000

  4. KeyUp "Right", 1

  5. Delay 100

  6. KeyDown "Down", 1

  7. Delay 2000

  8. KeyUp "Down", 1

  9. Delay 200

  10. KeyDown "Right", 1

  11. Delay 7000

  12. KeyUp "Right", 1

  13. KeyPress "Right", 1

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式