有了自动登录,心情好了很多。

Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\RSA\RSA SecurID Token\RSA SecurID Token.lnk"
WinWait 000, , 8000
Sleep 500
SendInput password{enter}
Sleep 500
Send ^c
Sleep 500
SendInput !{F4}
MsgBox, 1, , Continue to Pulse VPN? %clipboard%, 3
IfMsgBox Cancel
    return
IfWinExist, Connect
{    WinActivate
    Goto, PasswordInput
}
Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Pulse Secure\Pulse Secure.lnk"
WinWait, Pulse, , 12
Sleep 800
Click 244,136 
Sleep 800
WinWait, Connect, , 12
Sleep 800
PasswordInput:
IfWinActive, Connect
    Send ^v
Sleep 800
SendInput {enter}
Sleep 2000
Click 390,366
Sleep 800
If WinActive("Pulse Secure")
    WinClose

标签: none

添加新评论