Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey v2.0
- n::MovementRun()
- running := 1
- MovementRun(){
- global running
- running := 1
- send "{K}"
- Loop 50
- {
- if running > 0{
- Sleep 500
- Send "{d down}"
- Sleep 2500 ; 2500 milliseconds = 2.5 seconds
- Send "{d up}"
- Sleep 500
- Send "{K}"
- }else{
- Break
- }
- }
- }
- l::breakrun()
- breakrun(){
- global running := 0
- }
Advertisement
Add Comment
Please, Sign In to add comment