Solved

Capture Text

Posted on 1998-11-20
6
279 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now