Advertisement
Guest User

Vampire's Auto Accept Script FindMatch.au3

a guest
Apr 1st, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. ;Proudly skidded by Vampire
  2.  
  3. ;press F11 with mouse over where the accept button is, then move mouse to where the search button is and press F11 again.
  4. ;Press F8 to start auto accept, press F9 to stop. It will click search, and accept.
  5. ;So if someone leaves or joins the lobby while you're AFK it will keep the search going.
  6.  
  7. HotKeySet("{F11}", "SetMouseCoords1")
  8. HotKeySet("{F8}", "Start")
  9. HotKeySet("{F9}", "Stop")
  10.  
  11. $FindMatch = false
  12. $X1 = 0
  13. $Y1 = 0
  14. $X2 = 0
  15. $Y2 = 0
  16.  
  17. While 1
  18. Sleep(10)
  19. WEnd
  20.  
  21. Func SetMouseCoords1()
  22. $MousePos = MouseGetPos()
  23. $X1 = $MousePos[0]
  24. $Y1 = $MousePos[1]
  25. HotKeySet("{F11}", "SetMouseCoords2")
  26. EndFunc
  27.  
  28. Func SetMouseCoords2()
  29. $MousePos = MouseGetPos()
  30. $X2 = $MousePos[0]
  31. $Y2 = $MousePos[1]
  32. HotKeySet("{F11}", "SetMouseCoords1")
  33. EndFunc
  34.  
  35. Func Start()
  36. $FindMatch = true
  37. While($FindMatch == true)
  38. WinActivate("Counter-Strike: Global Offensive")
  39. MouseMove($X1, $Y1, 10)
  40. Sleep(20)
  41. MouseClick("left")
  42. Sleep(20)
  43. MouseMove($X2, $Y2, 10)
  44. Sleep(20)
  45. MouseClick("left")
  46. Sleep(20)
  47. Wend
  48. EndFunc
  49.  
  50. Func Stop()
  51. $FindMatch = false
  52. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement