Advertisement
D3V3

bounty is noob 1

Oct 21st, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Bounty is noob #1
  2. Autopistol - spam pistol
  3. best with tec (working like silver with negev)
  4. off/on F7
  5. (Copy this only)
  6. ________________
  7. ScriptActive = 1
  8.  
  9. ~*w up::
  10. If ScriptActive = 1
  11. {
  12. if(GetKeyState("s","P")) ; if w is pressed, do not perform sub
  13. return
  14. start:=A_TickCount
  15. start+=125
  16. Send {s down}
  17. While (!GetKeyState("s","P") && A_TickCount<start) ; if w is pressed, exit this While loop. Exit after 100 ms regardless
  18. Sleep 10
  19. If !GetKeyState("s","P") ; if you are holding w down physically, you don't want to send a w up keystroke
  20. Send {s up}
  21. }
  22. return
  23.  
  24. ~*a up::
  25. If ScriptActive = 1
  26. {
  27. if(GetKeyState("d","P")) ; if w is pressed, do not perform sub
  28. return
  29. start:=A_TickCount
  30. start+=125
  31. Send {d down}
  32. While (!GetKeyState("d","P") && A_TickCount<start) ; if w is pressed, exit this While loop. Exit after 100 ms regardless
  33. Sleep 10
  34. If !GetKeyState("d","P") ; if you are holding w down physically, you don't want to send a w up keystroke
  35. Send {d up}
  36. }
  37. return
  38.  
  39. ~*d up::
  40. If ScriptActive = 1
  41. {
  42. if(GetKeyState("a","P")) ; if w is pressed, do not perform sub
  43. return
  44. start:=A_TickCount
  45. start+=125
  46. Send {a down}
  47. While (!GetKeyState("a","P") && A_TickCount<start) ; if w is pressed, exit this While loop. Exit after 100 ms regardless
  48. Sleep 10
  49. If !GetKeyState("a","P") ; if you are holding w down physically, you don't want to send a w up keystroke
  50. Send {a up}
  51. }
  52. return
  53.  
  54. ~*s up::
  55. If ScriptActive = 1
  56. {
  57. if(GetKeyState("w","P")) ; if w is pressed, do not perform sub
  58. return
  59. start:=A_TickCount
  60. start+=125
  61. Send {w down}
  62. While (!GetKeyState("w","P") && A_TickCount<start) ; if w is pressed, exit this While loop. Exit after 100 ms regardless
  63. Sleep 10
  64. If !GetKeyState("w","P") ; if you are holding w down physically, you don't want to send a w up keystroke
  65. Send {w up}
  66. }
  67. return
  68.  
  69.  
  70. ~F7::
  71. If ScriptActive = 1
  72. {
  73. ScriptActive = 0
  74. SoundBeep, 400, 400
  75. }
  76. else if ScriptActive = 0
  77. {
  78. ScriptActive = 1
  79. SoundBeep, 1000, 100
  80. SoundBeep, 1000, 100
  81. }
  82. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement