Sub Macro1()
' Generated by the Reflection Macro Recorder on 05-18-2018 11:51:25.54.
' Generated by Reflection for UNIX and OpenVMS 14.0.7.
On Error GoTo ErrorHandler
Const NEVER_TIME_OUT = 0
Dim CR As String ' Chr(rcCR) = Chr(13) = Control-M
Dim ESC As String ' Chr(rcESC) = Chr(27) = Control-[
CR = Chr(Reflection2.ControlCodes.rcCR)
ESC = Chr(Reflection2.ControlCodes.rcESC)
With Session
' Press EditPaste (Insert the Clipboard contents at the cursor position).
' Reflection has recorded the record-time contents of the clipboard.
' If you want to use the playback-time contents of the clipboard,
' Uncomment the following line and delete the appropriate record-time data.
' .Paste
.Transmit "9700538287"
' The following string was not unique:
' .WaitForString ESC & "[4;25H", NEVER_TIME_OUT, rcAllowKeystrokes
.StatusBar = "Waiting for Prompt: PRESS ANY KEY.."
.WaitForString "." & ESC & "[4;25H", NEVER_TIME_OUT, rcAllowKeystrokes
.StatusBar = ""
' Press VtEnter (Simulate pressing the Enter key).
.TransmitTerminalKey rcVtEnterKey
' The following string was not unique:
' .WaitForString ESC & "[?25h", NEVER_TIME_OUT, rcAllowKeystrokes
.StatusBar = "Waiting for Prompt: SCAN SLOT TAG:"
.WaitForString "7H" & ESC & "[?25h", NEVER_TIME_OUT, rcAllowKeystrokes
.StatusBar = ""
' Press EditPaste (Insert the Clipboard contents at the cursor position).
' Reflection has recorded the record-time contents of the clipboard.
' If you want to use the playback-time contents of the clipboard,
' Uncomment the following line and delete the appropriate record-time data.
' .Paste
.Transmit "J6039" & CR
' The following string was not unique:
' .WaitForString ESC & "[3;22H", NEVER_TIME_OUT, rcAllowKeystrokes
.WaitForString "." & ESC & "[3;22H", NEVER_TIME_OUT, rcAllowKeystrokes
' Press VtEnter (Simulate pressing the Enter key).
.TransmitTerminalKey rcVtEnterKey
' The following string was not unique:
' .WaitForString ESC & "[?25h", NEVER_TIME_OUT, rcAllowKeystrokes
' .WaitForString "5H" & ESC & "[?25h", NEVER_TIME_OUT, rcAllowKeystrokes
End With
Exit Sub
ErrorHandler:
Session.MsgBox Err.Description, vbExclamation + vbOKOnly
' Recording stopped at 11:51:54.46.
End Sub