按键精灵 怎么实现找完区域内的所有图就自动停止脚本呢

2025-04-24 22:30:07
推荐回答(1个)
回答1:

  1. //给你改好了,如果你之前写的脚本能删除色块的话就没问题了。

  2. Rem A

  3. FindColor 779,317,1553,1080,"1200E5",intX,intY

  4. If intX > 0 And intY > 0 Then

  5. MoveTo intX+15, intY+15

  6. Delay 50

  7. LeftClick 1

  8. Delay 50

  9. KeyPress "Delete", 1

  10. Delay 300

  11. Goto A

  12. EnD If

  13. FindColor 779, 317, 1553, 1080, "88201D", intX, intY

  14. If intX > 0 And intY > 0 Then

  15. MoveTo intX + 15, intY + 15

  16. Delay 50

  17. LeftClick 1

  18. Delay 50

  19. KeyPress "Delete", 1

  20. Delay 300

  21. Goto A

  22. End If