Solved

Capture Text

Posted on 1998-11-20
6
324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

724 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