Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: New to Emulation and Telnet
mcconnelljh

From: Charleston, SC USA
Posts: 2
Member Since: 04/12/04
posted April 13, 2004 9:18 AM

I've recently downloaded the VT Emulation Client (30 day trial) to use in a custom piece of software I'm developing at the college I work at so we're planning on buying if I can get the thing figured out. I've gone through the help section and using the notes there I'm able to connect on my own and automate the username and password portion, but ater that I'm lost. Heres a look at my code:

DoConnect(IP ADDRESS, PORT)
Dim s As String
Dim data As String
telnet1.AutoReceive = False
telnet1.ReceiveTimeout = 5000

vt1.Clear()
Me.Text = APP_NAME + " [Connecting ...]"
s = telnet1.WaitFor("Username:")
vt1.Write(s)
telnet1.Send(USERNAME + vbCrLf)
s = telnet1.WaitFor("Password: ")
telnet1.Send(PASSWORD + vbCrLf)
vt1.Write(s)

If I were in an actual telnet session I would hit enter after typing in the password and the screen would shoot out a ton of text and then clear itself and display a menu. This menu is generated from a database I believe based on user permissions. I've tried using a WaitFor for every piece of text on this menu screen and cannot get anything going. Does anyone have any suggestions?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 13, 2004 9:34 AM

Did you try my suggestion from yesterday? Here's what I said in the previous thread you started:

"Use tracing to get a log of the characters that are received ( See the Trace event of the samples to learn how to do this )

Look at the log with a hex editor and try to determine what you need to look for. It's probably an escape sequence."
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX