Advertisement
mkv

shuffle machine v1.1

mkv
Jul 1st, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #UseHook
  2.  
  3. ; ============================================
  4. ; LATEST VERSION: http://pastebin.com/zJbQB8Qj
  5. ; ============================================
  6.  
  7. ; ============================================
  8. ; the shuffle machine v1.1
  9. ; 2016-07-02 00:31, ed @ irc.rizon.net
  10. ; copyleft and protected by stallman's beard
  11. ;
  12. ; lets you go like
  13. ; https://www.youtube.com/watch?v=mfSIcx1YgVE
  14. ;
  15. ; the first section handles the A and D keys,
  16. ; second section is for W and S
  17. ;
  18. ; delete stuff you don't want
  19. ;
  20. ; don't come crying if this gets you banned,
  21. ; i have no idea what various games think
  22. ; about messing with the keyboard like this
  23. ;
  24. ; TODO:
  25. ; the mouse thing
  26. ; ============================================
  27.  
  28.  
  29.  
  30. ; ============================================
  31. ; below this line: keys A and D
  32. ; ============================================
  33.  
  34. ax := false
  35. dx := false
  36.  
  37. $a::
  38.     Send {a Down}
  39.     ax := true
  40.     if (dx = true)
  41.     {
  42.         Send {d Up}
  43.     }
  44.     return
  45. $a Up::
  46.     Send {a Up}
  47.     ax := false
  48.     if (dx = true)
  49.     {
  50.         Send {d Up}
  51.         Send {d Down}
  52.     }
  53.     return
  54. $d::
  55.     Send {d Down}
  56.     dx := true
  57.     if (ax = true)
  58.     {
  59.         Send {a Up}
  60.     }
  61.     return
  62. $d Up::
  63.     Send {d Up}
  64.     dx := false
  65.     if (ax = true)
  66.     {
  67.         Send {a Up}
  68.         Send {a Down}
  69.     }
  70.     return
  71.  
  72. ; ============================================
  73. ; above this line: keys A and D
  74. ; ============================================
  75.  
  76.  
  77.  
  78. ; ============================================
  79. ; below this line: keys W and S
  80. ; ============================================
  81.  
  82. wx := false
  83. sx := false
  84.  
  85. $w::
  86.     Send {w Down}
  87.     wx := true
  88.     if (sx = true)
  89.     {
  90.         Send {s Up}
  91.     }
  92.     return
  93. $w Up::
  94.     Send {w Up}
  95.     wx := false
  96.     if (sx = true)
  97.     {
  98.         Send {s Up}
  99.         Send {s Down}
  100.     }
  101.     return
  102. $s::
  103.     Send {s Down}
  104.     sx := true
  105.     if (wx = true)
  106.     {
  107.         Send {w Up}
  108.     }
  109.     return
  110. $s Up::
  111.     Send {s Up}
  112.     sx := false
  113.     if (wx = true)
  114.     {
  115.         Send {w Up}
  116.         Send {w Down}
  117.     }
  118.     return
  119.  
  120. ; ============================================
  121. ; above this line: keys W and S
  122. ; ============================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement