josechakkala
New Member
- Joined
- Nov 23, 2013
- Messages
- 22
Hi,
Some one please guide me how to automate putty using vba. I am able to invoke putty.exe using Shell command, but not able to enter the user name and password. Tried Sendkeys for entering username, but that is not working.
PuttyWindow = Shell("D:\putty.exe -telnet servername", vbNormalFocus)
AppActivate PuttyWindow, True
Application.Wait (Now + TimeValue("0:00:02"))
SendKeys "username", True
SendKeys "{ENTER}", True
Thanks in Advance
Jose
Some one please guide me how to automate putty using vba. I am able to invoke putty.exe using Shell command, but not able to enter the user name and password. Tried Sendkeys for entering username, but that is not working.
PuttyWindow = Shell("D:\putty.exe -telnet servername", vbNormalFocus)
AppActivate PuttyWindow, True
Application.Wait (Now + TimeValue("0:00:02"))
SendKeys "username", True
SendKeys "{ENTER}", True
Thanks in Advance
Jose