• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

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?

0
Neal Hartman
Asked:
Neal Hartman
  • 3
  • 3
1 Solution
 
ChrisKCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now