Advertisement
D3V3

Bounty is noob #3

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