FineNerds

WASD loop

Jul 23rd, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^z::
  2.     $int := 1
  3.     Loop,
  4.     {
  5.         if($int = 0)
  6.         {
  7.             return;
  8.         }
  9.         if($int < 2)
  10.         {
  11.             send{w down}
  12.             Sleep 200
  13.             send{w up}
  14.             $int += 1
  15.         }
  16.         if($int < 3)
  17.         {
  18.             send{a down}
  19.             Sleep 200
  20.             send{a up}
  21.             $int += 1
  22.         }
  23.         if($int < 4)
  24.         {
  25.             send{s down}
  26.             Sleep 200
  27.             send{s up}
  28.             $int += 1
  29.         }
  30.         if($int < 5)
  31.         {
  32.             send{d down}
  33.             Sleep 200
  34.             send{d up}
  35.             $int = 1
  36.         }
  37.         sleep 100
  38.     }
  39.  
  40. ^q:: $int := 0
Advertisement
Add Comment
Please, Sign In to add comment