---------------------------------------------------
; this script logs you on to 5 different putty sessions
$answer = InputBox ("enter password", "please enter your password","","*",150,80)
If $answer = "" Then
MsgBox(0, "AutoIt Example", "Enter valid password")
Exit
EndIf
Opt("WinTitleMatchMode", 2)
For $count = 1 To 5
Run("C:\Program Files\PuTTY\putty.exe -ssh username@hostname")
WinWaitActive("PuTTY")
Sleep(1500)
;MsgBox(0,"Sending password" ,$answer)
Send($answer)
Send("{ENTER}")
Next
--------------------------------------------------------------
No comments:
Post a Comment