Advertisement
Guest User

UCSerge / CSGO Auto Queue Start/Accept

a guest
Mar 5th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.77 KB | None | 0 0
  1. ;CSGO Auto queue start/accept by serge (Skype: UCSerge)
  2. ;Install AutoIt3 from Official webpage - https://www.autoitscript.com/site/autoit/
  3. ;Create new AutoIt script and paste the source and run
  4. ;CSGO required video options for pixel-search+coordinates to match - https://postimg.org/image/fnf08e6v9/ (windowed/800x600/4:3)
  5.  
  6. #NoTrayIcon
  7. #RequireAdmin
  8.  
  9. Global $mode = 0
  10. Opt("MouseCoordMode", $mode)
  11. Opt("PixelCoordMode", $mode)
  12. Opt("WinTitleMatchMode", 1)
  13. Opt("MouseClickDownDelay", 25)
  14. Opt("MouseClickDelay", 10)
  15. Opt("SendKeyDownDelay", 25)
  16. Opt("SendKeyDelay", 10)
  17.  
  18.  
  19. Global $CheckFail = 0
  20. Global $Status = "AFK - END key [Off]/On"
  21. Global $Alive
  22.  
  23. Beep(800,200)
  24.  
  25. HotKeySet("{End}", "Afk")
  26. HotKeySet("{Del}", "EndApp")
  27.  
  28.  
  29. While 1
  30. Sleep(100)
  31. $Status = "AFK - END key [Off]"
  32. ToolTip(" ",@DesktopWidth /1.55, @DesktopHeight /50, "Status: " & $Status, "0")
  33. WEnd
  34.  
  35. Func Afk()
  36. $Status = "AFK - END key [On]"
  37.  
  38. ToolTip(" ",@DesktopWidth /1.55, @DesktopHeight /50, "Status: " & $Status, "0")
  39.  
  40.    $Alive = Not $Alive
  41.  
  42.    While $Alive
  43.       Sleep(3000)
  44.      
  45.       $number1 = 0 ;Start Queue button
  46.       If WinActive("Counter-Strike: Global Offensive") Then $number1 += 1
  47.       $coord1 = PixelSearch(578, 571, 747, 591, 0x297351, 3); Start Queue Button
  48.       If Not @error Then $number1 += 2
  49.      
  50.       Switch $number1
  51.       Case 3
  52.       MouseClick("left",662, 579,1,8)
  53.       MouseMove(117, 82, 8)
  54.       EndSwitch
  55.  
  56.       $number2 = 0 ;Start Queue button
  57.       If WinActive("Counter-Strike: Global Offensive") Then $number2 += 1
  58.       $coord2 = PixelSearch(23, 110, 241, 224, 0x195540, 3); Match Found
  59.       If Not @error Then $number2 += 2
  60.      
  61.  
  62.       Switch $number2
  63.       Case 3
  64.       MouseClick("left",133, 148,1,8)
  65.       MouseMove(117, 82, 8)
  66.       EndSwitch
  67.       WEnd
  68. EndFunc
  69.  
  70. Func EndApp()
  71. Beep(400,700)
  72. Exit 0
  73. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement