Using Type method |
Top Previous Next |
The Type method can be used to send key sequences to the mainframe starting from the current cursor position.
VB.NET tnxxxx.Type (Keys As String)
C# tnxxxx.Type (string Keys);
By using special codes you can send several special keys. These codes consist of an escape character ("@") and a mnemonic code that corresponds to the supported function.
Type method can also make entered data to be sent along with an AID key (Attention Identifier key), avoiding the use of Press method.
The following table lists the functions keys and its corresponding codes.
VB.NET: Private Sub SendUserAndPassword(userId As String, password As String) '@T is translated to TAB key tn3270.Type(userId+"@T"+password) tn3270.PressAndWait(Enter) End Sub
C#: private void SendUserAndPassword(string userId,string password) { // @T is translated to TAB key tn3270.Type(userId+"@T"+password); tn3270.PressAndWait(Enter); }
|