Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Proudly skidded by Vampire
- ;press F11 with mouse over where the accept button is, then move mouse to where the search button is and press F11 again.
- ;Press F8 to start auto accept, press F9 to stop. It will click search, and accept.
- ;So if someone leaves or joins the lobby while you're AFK it will keep the search going.
- HotKeySet("{F11}", "SetMouseCoords1")
- HotKeySet("{F8}", "Start")
- HotKeySet("{F9}", "Stop")
- $FindMatch = false
- $X1 = 0
- $Y1 = 0
- $X2 = 0
- $Y2 = 0
- While 1
- Sleep(10)
- WEnd
- Func SetMouseCoords1()
- $MousePos = MouseGetPos()
- $X1 = $MousePos[0]
- $Y1 = $MousePos[1]
- HotKeySet("{F11}", "SetMouseCoords2")
- EndFunc
- Func SetMouseCoords2()
- $MousePos = MouseGetPos()
- $X2 = $MousePos[0]
- $Y2 = $MousePos[1]
- HotKeySet("{F11}", "SetMouseCoords1")
- EndFunc
- Func Start()
- $FindMatch = true
- While($FindMatch == true)
- WinActivate("Counter-Strike: Global Offensive")
- MouseMove($X1, $Y1, 10)
- Sleep(20)
- MouseClick("left")
- Sleep(20)
- MouseMove($X2, $Y2, 10)
- Sleep(20)
- MouseClick("left")
- Sleep(20)
- Wend
- EndFunc
- Func Stop()
- $FindMatch = false
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement