Guest User

moveAHK

a guest
Oct 18th, 2023
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #Requires AutoHotkey v2.0
  2.  
  3. n::MovementRun()
  4.  
  5. running := 1
  6.  
  7. MovementRun(){
  8. global running
  9. running := 1
  10. send "{K}"
  11. Loop 50
  12. {
  13. if running > 0{
  14.  
  15. Sleep 500
  16. Send "{d down}"
  17. Sleep 2500 ; 2500 milliseconds = 2.5 seconds
  18. Send "{d up}"
  19. Sleep 500
  20. Send "{K}"
  21. }else{
  22. Break
  23. }
  24. }
  25. }
  26.  
  27. l::breakrun()
  28.  
  29. breakrun(){
  30.  
  31. global running := 0
  32. }
Advertisement
Add Comment
Please, Sign In to add comment