Advertisement
DelVision

PlayersX - F-keys + Indicator

Jun 10th, 2018
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Recommended for performance
  2. #NoEnv
  3.  
  4. ; Better and more reliable
  5. SendMode Input
  6.  
  7. ;Macro by: DelVision
  8.  
  9. F1::
  10.  if ( not GetKeyState("RButton" , "P") )
  11.     Send {Numpad9 down} ;indicator clear with Numpad 9
  12.     Sleep, 40 ;delay to let OBS understand the key being pushed (it has small latency)
  13.     Send {Numpad9 up}
  14.     Sleep, 10
  15.         Send {Enter} ;changing players
  16.         Sleep, 40 ;delay to wait enter being pushed
  17.         Send /players
  18.         Sleep, 10
  19.         Send {Enter}
  20.         Sleep, 10
  21.     Send {Numpad1 down} ;indicator show with Numpad 1
  22.     Sleep, 40
  23.     Send {Numpad1 up}
  24. return
  25.  
  26. F2::
  27.  if ( not GetKeyState("RButton" , "P") )
  28.     Send {Numpad9 down}
  29.     Sleep, 40
  30.     Send {Numpad9 up}
  31.     Sleep, 10
  32.         Send {Enter}
  33.         Sleep, 40
  34.         Send /players 2
  35.         Sleep, 10
  36.         Send {Enter}
  37.         Sleep, 10
  38.     Send {Numpad2 down}
  39.     Sleep, 40
  40.     Send {Numpad2 up}
  41. return
  42.  
  43. F3::
  44.  if ( not GetKeyState("RButton" , "P") )
  45.     Send {Numpad9 down}
  46.     Sleep, 40
  47.     Send {Numpad9 up}
  48.     Sleep, 10
  49.         Send {Enter}
  50.         Sleep, 40
  51.         Send /players 3
  52.         Sleep, 10
  53.         Send {Enter}
  54.         Sleep, 10
  55.     Send {Numpad3 down}
  56.     Sleep, 40
  57.     Send {Numpad3 up}
  58.  return
  59.  
  60. F4::
  61.  if ( not GetKeyState("RButton" , "P") )
  62.     Send {Numpad9 down}
  63.     Sleep, 40
  64.     Send {Numpad9 up}
  65.     Sleep, 10
  66.         Send {Enter}
  67.         Sleep, 40
  68.         Send /players 4
  69.         Sleep, 10
  70.         Send {Enter}
  71.         Sleep, 10
  72.     Send {Numpad4 down}
  73.     Sleep, 40
  74.     Send {Numpad4 up}
  75.  return
  76.  
  77. F5::
  78.  if ( not GetKeyState("RButton" , "P") )
  79.     Send {Numpad9 down}
  80.     Sleep, 40
  81.     Send {Numpad9 up}
  82.     Sleep, 10
  83.         Send {Enter}
  84.         Sleep, 40
  85.         Send /players 5
  86.         Sleep, 10
  87.         Send {Enter}
  88.         Sleep, 10
  89.     Send {Numpad5 down}
  90.     Sleep, 40
  91.     Send {Numpad5 up}
  92.  return
  93.  
  94. F6::
  95.  if ( not GetKeyState("RButton" , "P") )
  96.     Send {Numpad9 down}
  97.     Sleep, 40
  98.     Send {Numpad9 up}
  99.     Sleep, 10
  100.         Send {Enter}
  101.         Sleep, 40
  102.         Send /players 6
  103.         Sleep, 10
  104.         Send {Enter}
  105.         Sleep, 10
  106.     Send {Numpad6 down}
  107.     Sleep, 40
  108.     Send {Numpad6 up}
  109.  return
  110.  
  111. F7::
  112.  if ( not GetKeyState("RButton" , "P") )
  113.     Send {Numpad9 down}
  114.     Sleep, 40
  115.     Send {Numpad9 up}
  116.     Sleep, 10
  117.         Send {Enter}
  118.         Sleep, 40
  119.         Send /players 7
  120.         Sleep, 10
  121.         Send {Enter}
  122.         Sleep, 10
  123.     Send {Numpad7 down}
  124.     Sleep, 40
  125.     Send {Numpad7 up}
  126.  return
  127.  
  128. F8::
  129.  if ( not GetKeyState("RButton" , "P") )
  130.     Send {Numpad9 down}
  131.     Sleep, 40
  132.     Send {Numpad9 up}
  133.     Sleep, 10
  134.         Send {Enter}
  135.         Sleep, 40
  136.         Send /players 8
  137.         Sleep, 10
  138.         Send {Enter}
  139.         Sleep, 10
  140.     Send {Numpad8 down}
  141.     Sleep, 40
  142.     Send {Numpad8 up}
  143.  return
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement