Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HotKeySet("{F4}", "_Exit")
- Func _Exit()
- Sleep(100)
- Exit
- EndFunc ;==> _Exit()
- Opt("PixelCoordMode", 0)
- $close =("C:\Users\Taum\Desktop\close cs.exe")
- $prog =("nnn1-10.exe")
- $steam = ("taumnnn1")
- $sda = ("C:\Users\Taum\Desktop\SDA\SDA NNN\1-20\Steam Desktop Authenticator.exe")
- Run(@ScriptDir & '\' & $steam & '.bat')
- Sleep(17000)
- WinActivate("Steam Guard — Необходима авторизация компьютера")
- WinWaitActive("Steam Guard — Необходима авторизация компьютера")
- if not WinExists("Steam Desktop Authenticator") Then
- Run($sda)
- Sleep(2000)
- Send("1313")
- Send("{enter}")
- $b = 0
- While $b = 0
- $d = ControlGetText("Steam Desktop Authenticator", "", "[Class:WindowsForms10.EDIT.app.0.afceb_r7_ad1; INSTANCE:2]")
- If $d <> "" Then
- $b = 1
- EndIf
- WEnd
- EndIf
- WinActivate("Steam Desktop Authenticator")
- WinWaitActive("Steam Desktop Authenticator")
- Sleep (300)
- WinMove("Steam Desktop Authenticator", "", 1000, 167)
- ControlClick("Steam Desktop Authenticator", "", "[Class:WindowsForms10.LISTBOX.app.0.afceb_r7_ad1; INSTANCE:1]")
- Send("{end}")
- $sda = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]")
- Send("{home}")
- $a = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]")
- $b = 0
- $c = "Account: " & $steam
- if $a = $c Then
- $b = 1
- EndIf
- While $b <>1
- Send("{down 1}")
- $a = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]")
- if $a = $c Then
- $b = 1
- EndIf
- if $b <> 1 and $a = $sda then
- MsgBox (0, "Ошибка", "Аккаунт отсутствует в SDA" )
- Exit
- EndIf
- WEnd
- $d = ControlGetText("Steam Desktop Authenticator", "", "[Class:WindowsForms10.EDIT.app.0.afceb_r7_ad1; INSTANCE:2]")
- ClipPut($d)
- WinSetState("Steam Desktop Authenticator", "", @SW_MINIMIZE)
- WinActivate("Steam Guard — Необходима авторизация компьютера")
- WinWaitActive("Steam Guard — Необходима авторизация компьютера")
- Send('+{INS}')
- Send("{enter}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement