Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #SingleInstance
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. ; Global Variables
  5. _ftwo := false
  6. _fthree := false
  7. _ffour := false
  8. _ffive := false
  9. _fsix := false
  10. _fseven := false
  11. _m92auto := false
  12. ; Script Functions
  13. ~Up:: Suspend
  14. End:: ExitApp
  15. Insert:: Reload
  16. ; Toggle Keys
  17. F2:: _ftwo := ! _ftwo
  18. F3:: _fthree := ! _fthree
  19. F4:: _ffour := ! _ffour
  20. F5:: _ffive := ! _ffive
  21. F6:: _fsix := ! _fsix
  22. F7:: _fseven := ! _fseven
  23. F8:: _m92auto := ! _m92auto
  24. ; HotKeys
  25. ;~RButton & ~LButton::
  26. ; Loop {
  27. ; If (_fthree = true) {
  28. ; semi_noatt() ; semi-rifle or p250
  29. ; }
  30. ; else
  31. ; If (_ffour = true) {
  32. ; semi_4times()
  33. ; }
  34. ; else
  35. ; If (_ffive = true) {
  36. ; semi_silenced()
  37. ; }
  38. ; else
  39. ; If (_fsix = true) {
  40. ; ak47()
  41. ; }
  42. ; else
  43. ; If (_fseven = true) {
  44. ; m249()
  45. ; }
  46. ; }
  47. ;Return
  48. LCtrl & ~LButton::
  49. ; Loop {
  50. If (_ftwo = true) {
  51. thompson()
  52. }
  53. else
  54. If (_fthree = true) {
  55. semi_noatt() ; semi-rifle or p250
  56. }
  57. else
  58. If (_ffour = true) {
  59. semi_4times()
  60. }
  61. else
  62. If (_ffive = true) {
  63. semi_silenced()
  64. }
  65. else
  66. If (_fsix = true) {
  67. ak47()
  68. }
  69. else
  70. If (_fseven = true) {
  71. m249()
  72. }
  73. ; }
  74. ;Return
  75. ;XButton1:: ; mouse button 4
  76. ;Run, netsh.exe advfirewall firewall set rule name="blocknet" new enable="yes",,Hide ; lag switch = Enable
  77. ;return
  78. ;XButton2:: ; mouse button 5
  79. ;Run, netsh.exe advfirewall firewall set rule name="blocknet" new enable="no",,Hide ; lag switch = Disable
  80. ;return
  81. thompson()
  82. {
  83. global _ftwo
  84. if _ftwo
  85. {
  86. Loop
  87. {
  88. If GetKeyState("LCtrl", "LButton")
  89. {
  90. Sleep, 6
  91. moveAmount := (moveAmount = 2) ?6 : 0
  92. mouseXY(moveAmount, 1.4)
  93. }
  94. else
  95. break
  96. }
  97. }
  98. }
  99. semi_noatt()
  100. {
  101. global _fthree
  102.  
  103. if _fthree
  104. {
  105. Loop
  106. {
  107. ; If GetKeyState("RButton", "LButton")
  108. ; {
  109. ; Sleep, 50
  110. ; Y(moveAmount, 27)
  111. ; X(moveAmount, -8)
  112. ; }
  113. ; else
  114. If GetKeyState("LCtrl", "LButton")
  115. {
  116. Sleep, 50
  117. Y(moveAmount, 26)
  118. X(moveAmount, -7)
  119. }
  120. else
  121. break
  122. }
  123. }
  124. }
  125. semi_4times()
  126. {
  127. global _ffour
  128.  
  129. if _ffour
  130. {
  131. Loop
  132. {
  133. ; If GetKeyState("RButton", "LButton")
  134. ; {
  135. ; Sleep, 50
  136. ; Y( moveAmount, 100 )
  137. ; X( moveAmount, -25 )
  138. ; }
  139. ; else
  140. If GetKeyState("LCtrl", "LButton")
  141. {
  142. Sleep, 50
  143. Y( moveAmount, 100 )
  144. X( moveAmount, -25 )
  145. }
  146. else
  147. break
  148. }
  149. }
  150. }
  151. semi_silenced()
  152. {
  153. global _ffive
  154.  
  155. if _ffive
  156. {
  157. Loop
  158. {
  159. ; If GetKeyState("RButton", "LButton")
  160. ; {
  161. ; Sleep, 50
  162. ; Y( moveAmount, 22 )
  163. ; X( moveAmount, -6 )
  164. ; }
  165. ; else
  166. If GetKeyState("LCtrl", "LButton")
  167. {
  168. Sleep, 50
  169. Y( moveAmount, 22 )
  170. X( moveAmount, -6 )
  171. }
  172. else
  173. break
  174. }
  175. }
  176. }
  177. ak47()
  178. {
  179. global _fsix
  180.  
  181. If _fsix
  182. {
  183. Loop
  184. {
  185. ; If GetKeyState("RButton", "LButton")
  186. ; {
  187. ; Sleep, 1
  188. ;; Y( moveAmount, 5 )
  189. ; X( moveAmount, -3 )
  190. ; }
  191. ; else
  192. If GetKeyState("LCtrl", "LButton")
  193. {
  194. Sleep, 1
  195. Y( moveAmount, 2.5 )
  196. X( moveAmount, -1 )
  197. }
  198. else
  199. break
  200. }
  201. }
  202. }
  203. m249()
  204. {
  205. global _fseven
  206.  
  207. if _fseven
  208. {
  209. Loop
  210. {
  211. ; If GetKeyState("RButton", "LButton")
  212. ; {
  213. ; Sleep, 1
  214. ; Y( moveAmount, 5 )
  215. ; X( moveAmount, -3 )
  216. ; }
  217. ; else
  218. If GetKeyState("LCtrl", "LButton")
  219. {
  220. Sleep, 1
  221. Y( moveAmount, 2.5 )
  222. X( moveAmount, -1 )
  223. }
  224. else
  225. break
  226. }
  227. }
  228. }
  229. m92_autofire()
  230. {
  231. global _m92auto
  232.  
  233. if _m92auto
  234. {
  235. Loop
  236. {
  237. If GetKeyState("LButton", "P")
  238. {
  239. SendInput {LButton DownTemp}
  240. Sleep 1
  241. mouseXY(0, 70)
  242. Sleep 1
  243. SendInput {LButton Up}
  244. Sleep 25
  245. }
  246. else
  247. break
  248. }
  249. }
  250. }
  251. mouseXY( x, y )
  252. {
  253. DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
  254. }
  255. Y( a, y ) ; Value with a minus sign - move the mouse up.
  256. { ; Value without a minus sign - move the mouse down.
  257. DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
  258. }
  259. X( b, x ) ; Value with a minus sign - move the mouse to the left.
  260. { ; Value without a minus sign - move the mouse to the right.
  261. DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement