Solved

Capture Text

Posted on 1998-11-20
6
304 Views
Last Modified: 2010-05-03
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
Comment
Question by:Neal Hartman
  • 3
  • 3
6 Comments
 
LVL 2

Accepted Solution

by:
ChrisK earned 100 total points
ID: 1445933
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
 
LVL 1

Author Comment

by:Neal Hartman
ID: 1445934
It works. Any idea how I can stop the screen from flashing during the capture?


0
 
LVL 2

Expert Comment

by:ChrisK
ID: 1445935
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.

 
LVL 1

Author Comment

by:Neal Hartman
ID: 1445936
The viewer sees the cursor go home and highlight everything to the end. He sees the screen "FLASH".

0
 
LVL 2

Expert Comment

by:ChrisK
ID: 1445937
That can't be prevented.  You HAVE to highlight the data to capture.
0
 
LVL 1

Author Comment

by:Neal Hartman
ID: 1445938
The viewer sees the cursor go home and highlight everything to the end. He sees the screen "FLASH".

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question