Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TelNet and SendKeys

Status
Not open for further replies.

LyallJ

MIS
Jul 18, 2001
124
US
I am shelling out to a telnet. thats cool and every thing. I got it to work right. But for some reason, I cant get the sendkeys to work, for the username and addy. Heres some of the code that i have so far. Any Ideas??

Private Sub Command1_Click()
Shell "telnet XXX.XXX.XXX.XXX"
SendKeys "username{ENTER}"
SendKeys "Password{ENTER}"
End Sub

I just can't seem to get it to work. Thanks in advance
 
Never mind yall, i got it. thanks to the link below. i found that sendkeys will not work with dos, but that this code fakes it out or something. it works, but i have not had a chance to pick it apart to see how it works.


Thanks Again, and props to the ppl that wrote this code


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top