Login  
Search All Forums
Dart Home | PowerTCP Emulation for ActiveX | Custom Development Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
AuthorForum: PowerTCP Emulation / Telnet for ActiveX
Topic: Best Technique for screenscrape/automated entry
wcombs

From: Kingsport, TN USA
Posts: 3
Member Since: 11/07/05
posted February 28, 2006 10:50 AM

I have written a screenscaper using the emulation and telnet controls and its all timing based. So I send a keystroke to the telnet server and then start a timer I wait x number of seconds or milliseconds etc. When the timer fires i can then scrape the text from the screen and send the next command repeating the process. this works pretty well but sometimes the host application slows way down and my script gets out of sync. I can put a bunch of if statements in etc but I wanted to see what techniques others might be using for this. Do alot of people use the telnet.waitfor command? I would like to see the screen refersh then execute the next command. Anyone got any good advice? Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 6, 2006 8:52 AM

I would look for a common string that occurs near the end of each stage of the transmission. For example, a carriage return linefeed followed by the system command prompt.

Once you find that string, use the WaitFor method with it to get a page.
wcombs

From: Kingsport, TN USA
Posts: 3
Member Since: 11/07/05
posted March 6, 2006 11:15 AM

Does wait for do like a non blocking type of read?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 6, 2006 11:24 AM

First let me make sure we are talking about the same control. You mentioned WaitFor at first but now I realize that this is the Telnet Tool forum and that you may be referring to the ActiveX Telnet control instead of the .NET component. Please clarify which component you are using.
wcombs

From: Kingsport, TN USA
Posts: 3
Member Since: 11/07/05
posted March 6, 2006 11:26 AM

I am using the .Net Telnet Control and Emulation controls. I noticed the other day I probably posted in the wrong forum.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 7, 2006 12:06 PM

WaitFor does not have an asynchronous method. Since we determined that the nature of "waiting" inferred that we want no actions to complete until the desired token was received, we decided that having a BeginWaitFor (and an EndWaitFor event) would not make much sense.

Is there some reason that you feel you need a non-blocking version?


Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX