Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #NoEnv ;Weeaboos
  2. ; #Warn ; Gas Jews
  3. SendMode Input ; Idi
  4. SetWorkingDir %A_ScriptDir% ; Nahui
  5. #NoEnv
  6. SendMode, Input
  7. SetBatchLines -1
  8. CoordMode, Mouse, Screen
  9.  
  10. mouseXY(x, y){
  11. DllCall("mouse_event",uint,1,int,x,int,y­,uint,0,int,0)
  12. }
  13.  
  14. strafe(left){
  15. moveCount := 25
  16. sleepInterval := 2
  17. relativeMove := 15
  18. if(left){
  19. key := "a"
  20. move := -relativeMove
  21. } else {
  22. key := "d"
  23. move := relativeMove
  24. }
  25. Send, {Blind}{%key% down}
  26. DllCall("Sleep", "UInt", 5)
  27. Loop, %moveCount% {
  28. mouseXY(move, 0)
  29. DllCall("Sleep", "UInt", sleepInterval)
  30. }
  31. Send, {Blind}{%key% up}
  32. }
  33.  
  34. *XButton1::
  35. while getkeystate("XButton1","P") {
  36. strafe(false)
  37. strafe(true)
  38. }
  39. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement