九剑九枪.ahk 579 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 
  2. #Requires AutoHotkey v2.0
  3. ;需要管理员权限运行
  4. L::
  5. {
  6. KeyPress("q")
  7. Sleep 3000
  8. KeyPress("q")
  9. Sleep 3000
  10. KeyPress("{Tab}")
  11. Sleep 1000
  12. KeyPress("q")
  13. Sleep 1000
  14. KeyDown("r")
  15. Sleep 2000
  16. KeyUp("r")
  17. Sleep 1000
  18. KeyPress("2")
  19. Sleep 1000
  20. KeyPress("e")
  21. Sleep 1000
  22. KeyPress("1")
  23. }
  24. ; 辅助函数:模拟按一下按键
  25. KeyPress(key) {
  26. SendEvent key
  27. }
  28. ; 辅助函数:按住某键
  29. KeyDown(key) {
  30. SendEvent "{" key " down}"
  31. }
  32. ; 辅助函数:放开某键
  33. KeyUp(key) {
  34. SendEvent "{" key " up}"
  35. }