Sendkeys Method Not Working
PASSPORT PC to Host, PASSPORT Web to Host
VT
I am using the PASSPORT Object API to communicate with my VT420 session. However, when using the Sendkeys method, the text appears on the screen but the ENTER function never processes. How can this be resolved?
When you are communicating with a VT session, you need to use the RETURN command instead of using the ENTER command along with the SendKeys method.
See below for the proper command to use with the SendKeys method:
Function Screen_SendKeys ()
Dim Sys, Sess, MyScreen, MyArea
Set Sys = CreateObject("PASSPORT.System")
' Assumes an open session
Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen
MsgBox "Press to send some text string and AID key"
MyScreen.SendKeys "UTCAT<RETURN>"
End Function
Object, API, function, method, Sendkeys, communicate, enter, return