Solved

Capture Text

Posted on 1998-11-20
6
290 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

806 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