Advertisement
snajper23

cs farm 2023

Feb 22nd, 2023 (edited)
3,964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.64 KB | Software | 0 0
  1. #include <WinAPIProc.au3>
  2. $path = ("C:\Program Files\SDA-1.0.9\Steam Desktop Authenticator.exe")
  3.  
  4. $login = "vasya322"
  5. Run(@ScriptDir & "\" & $login & "_cs.bat")
  6. _checkSDA ()
  7. _steamstart ()
  8. _csname ()
  9. _startgame ()
  10.  
  11.  
  12. Func _checkSDA () ;проверка на наличие СДА и если нет то открываем
  13.     if not WinExists("Steam Desktop Authenticator") Then
  14.         Run($path) ; запускаем sda
  15.         Local $iID = ProcessExists('Steam Desktop Authenticator.exe')
  16.         If FileGetVersion(_WinAPI_GetProcessFileName($iID)) <> "1.0.10.0" Then ;если версия старая, то нажимаем "не качать новую версию"
  17.             WinWaitActive("New Version")
  18.             sleep(500)
  19.             Send("{right}")
  20.             Send("{enter}")
  21.         Else
  22.             WinActivate("Steam Desktop Authenticator")
  23.         EndIf
  24.     Else
  25.     WinActivate("Steam Desktop Authenticator")
  26.     EndIf
  27.     WinMove("Steam Desktop Authenticator", "", 1408, 296);передвигаем сда в удобное место, можно и не передвигать
  28.  EndFunc
  29.  
  30. Func _steamstart () ;поиск кода сда и вставка в стим
  31.    ControlClick("Steam Desktop Authenticator", "", "[NAME:listAccounts]")
  32.    Sleep (300)
  33.    Send("{end}")
  34.    $sda = ControlGetText ("Steam Desktop Authenticator", "", "[NAME:groupAccount]")
  35.    Send("{home}")
  36.    $a = ControlGetText ("Steam Desktop Authenticator", "", "[NAME:groupAccount]")
  37.    $b = 0
  38.    $c = "Account: " & $login
  39.    if $a = $c Then
  40.       $b = 1
  41.    EndIf
  42.    While $b <>1
  43.       Send("{down 1}")
  44.       $a = ControlGetText ("Steam Desktop Authenticator", "", "[NAME:groupAccount]")
  45.       if $a = $c Then
  46.          $b = 1
  47.       EndIf
  48.       if $b <> 1 and $a = $sda then
  49.          MsgBox (0, "Ошибка", "Аккаунт '" & $c & "' отсутствует в SDA" )
  50.          Exit
  51.       EndIf
  52.    WEnd
  53.    ControlClick("Steam Desktop Authenticator", "", "[Text:Copy]")
  54.    WinSetState("Steam Desktop Authenticator", "", @SW_MINIMIZE)
  55.    Do
  56.       Sleep(300)
  57.    Until WinExists("Вход в Steam")
  58.    $swh=WinGetHandle("Вход в Steam")
  59.    WinSetTitle($swh, "", "Вход_Steam " & $login)
  60.    WinActivate("Вход_Steam " & $login)
  61.    WinWaitActive("Вход_Steam " & $login)
  62.     Sleep(100)
  63.    WinActivate("Вход_Steam " & $login)
  64.    WinWaitActive("Вход_Steam " & $login)
  65.    Sleep(2000)
  66.    AutoItSetOption("PixelCoordMode",0)
  67.    $ppp=0xE0E1E6
  68.    While $ppp<>0x212328 And $ppp<>0x222429 And $ppp<>0x212329
  69.       $sss=WinGetHandle("Вход_Steam " & $login)
  70.       $ppp=PixelGetColor ( 50, 40, $sss)
  71.       $hhh=Hex($ppp,6)
  72.       WinActivate("Вход_Steam " & $login)
  73.    WEnd
  74.    Sleep(100)
  75.    WinActivate("Вход_Steam " & $login)
  76.    Send('+{INS}')
  77. EndFunc
  78.  
  79. Func _csname () ;переименовывание кс
  80.    WinExists("Counter-Strike: Global Offensive - Direct3D 9")
  81.    WinActivate("Counter-Strike: Global Offensive - Direct3D 9")
  82.    WinWaitActive("Counter-Strike: Global Offensive - Direct3D 9")
  83.    $z = 0
  84.    while $z = 0
  85.       $x = WinGetPos("Counter-Strike: Global Offensive - Direct3D 9")
  86.       if $x[2] < 420 and $x[3] < 420 Then
  87.          $z = 1
  88.       EndIf
  89.    WEnd
  90.    WinSetTitle("Counter-Strike: Global Offensive - Direct3D 9", "", "csgo - " & $login)
  91.    $m = 0
  92.    While $m = 0
  93.       $k = Winlist()
  94.       for $i = 1 to $k[0][0]
  95.          if StringRegExp($k[$i][0], "csgo - " & $login) then
  96.             $m = 1
  97.          EndIf
  98.       Next
  99.  
  100.    WEnd
  101. EndFunc
  102.  
  103. Func _startgame () ;нажимаем поиск десматча
  104. WinExists("csgo - "& $login)
  105. WinWaitActive("csgo - "& $login)
  106. Sleep (3000)
  107. $x = WinGetPos("csgo - "& $login)
  108. MouseClick('primary', $x[0] + 16, $x[1] + 64, 1)
  109. MouseClick('primary', $x[0] + 169, $x[1] + 79, 1)
  110. MouseClick('primary', $x[0] + 311, $x[1] + 313, 1)
  111. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement