Capture Text

I need to control Hyperterminal (with sendkeys) and do certain commands based on what is printed to the screen. How can I capture this text for analyses?

LVL 1
Neal HartmanAsked:
Who is Participating?
 
ChrisKConnect With a Mentor Commented:
Here is 1 possible solution.

Use sendkeys to hold down shift and press page down, then press control + C to copy the text on screen.  Then use Clipboard.GetText in your application to import the data on your terminal screen as text.  Then make a module that parses your text to seperate the commands you want from the other junk.  To send commands back to it, you could use sendkey, but it would be easier yet to just use paste since anything you type in hyperterminal is treated like a command (Paste to Host).
0
 
Neal HartmanAuthor Commented:
It works. Any idea how I can stop the screen from flashing during the capture?


0
 
ChrisKCommented:
flashing?  I'm afraid I don't understand what you mean.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Neal HartmanAuthor Commented:
The viewer sees the cursor go home and highlight everything to the end. He sees the screen "FLASH".

0
 
ChrisKCommented:
That can't be prevented.  You HAVE to highlight the data to capture.
0
 
Neal HartmanAuthor Commented:
The viewer sees the cursor go home and highlight everything to the end. He sees the screen "FLASH".

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.