Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help!!! PC quicker than answer from terminal

Help!!! PC quicker than answer from terminal

Help!!! PC quicker than answer from terminal


 I'm trying to implement my first scripts with VBA and Reflection x however I would like some advice. Give the follwing script:

Sub PruebaAHA()
' Generated by the Reflection Macro Recorder on 08-31-2009 12:31:07.85.
' Generated by Reflection for UNIX and OpenVMS 14.0.

    Const NEVER_TIME_OUT = 0

    Dim LF As String    ' Chr(rcLF) = Chr(10) = Control-J
    Dim CR As String    ' Chr(rcCR) = Chr(13) = Control-M
    Dim valor As String
    Dim a As Integer
    LF = Chr(Reflection2.ControlCodes.rcLF)
    CR = Chr(Reflection2.ControlCodes.rcCR)
      Session.Transmit "ld 20" & Chr(13)
      valor = Session.ReadLine
     MsgBox valor
End Sub

When the session transmit command is executed and I then use the readline on the message box i receive the string I've send "ld 20" instead of the message "REQ:" which is the next prompt on the terminal. It appears as if the PC is quicker processing the lines that what I receive on the terminal. Any advice?

Thanks in advance,

RE: Help!!! PC quicker than answer from terminal

SomeTestBool = YourScreenObject.WaitForString("REQ:")

Will hold until system timeout value is reached or your screen is painted with "REQ:" returns bool

Sometimes you gotta leave your zone of safety. You have to manufacture Inspirado. You gotta get out of the apartment. You've got to run with the wolves. You've got to dive into the ocean and fight with the sharks. Or just treat yourself to a delicious hot fudge sundae........ with nuts. - Jack Black

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close