Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UseHook
- ; ============================================
- ; LATEST VERSION: http://pastebin.com/zJbQB8Qj
- ; ============================================
- ; ============================================
- ; the shuffle machine v1.1
- ; 2016-07-02 00:31, ed @ irc.rizon.net
- ; copyleft and protected by stallman's beard
- ;
- ; lets you go like
- ; https://www.youtube.com/watch?v=mfSIcx1YgVE
- ;
- ; the first section handles the A and D keys,
- ; second section is for W and S
- ;
- ; delete stuff you don't want
- ;
- ; don't come crying if this gets you banned,
- ; i have no idea what various games think
- ; about messing with the keyboard like this
- ;
- ; TODO:
- ; the mouse thing
- ; ============================================
- ; ============================================
- ; below this line: keys A and D
- ; ============================================
- ax := false
- dx := false
- $a::
- Send {a Down}
- ax := true
- if (dx = true)
- {
- Send {d Up}
- }
- return
- $a Up::
- Send {a Up}
- ax := false
- if (dx = true)
- {
- Send {d Up}
- Send {d Down}
- }
- return
- $d::
- Send {d Down}
- dx := true
- if (ax = true)
- {
- Send {a Up}
- }
- return
- $d Up::
- Send {d Up}
- dx := false
- if (ax = true)
- {
- Send {a Up}
- Send {a Down}
- }
- return
- ; ============================================
- ; above this line: keys A and D
- ; ============================================
- ; ============================================
- ; below this line: keys W and S
- ; ============================================
- wx := false
- sx := false
- $w::
- Send {w Down}
- wx := true
- if (sx = true)
- {
- Send {s Up}
- }
- return
- $w Up::
- Send {w Up}
- wx := false
- if (sx = true)
- {
- Send {s Up}
- Send {s Down}
- }
- return
- $s::
- Send {s Down}
- sx := true
- if (wx = true)
- {
- Send {w Up}
- }
- return
- $s Up::
- Send {s Up}
- sx := false
- if (wx = true)
- {
- Send {w Up}
- Send {w Down}
- }
- return
- ; ============================================
- ; above this line: keys W and S
- ; ============================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement