PASSPORT Knowledge Base
Object Interface

Date Published: November 26, 2008

Title

Sendkeys Method Not Working

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

VT

Issue

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?

Solution

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

More Information

Keywords

Object, API, function, method, Sendkeys, communicate, enter, return