Send keystrokes to the QWS3270 session.
Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | keys | String | No | - | String of keystrokes or control/function keys. A maximum of 255 bytes (including host function key codes) is allowed. The string must be NULL terminated. |
Return Code | Description | ||||
JGS_OK | The keys were sent successfully | ||||
JGS_PARAMETERERROR | Missing or invalid parameter (string longer than 255 bytes) | ||||
JGS_NOTCONNECTED | You are not connected to a session. Call ISession::Connect first. | ||||
JGS_PSBUSY | The session is busy and not all of the keystrokes could be sent | ||||
JGS_INHIBITED | Input to the session is inhibited and keystrokes were rejected. A possible reason is that you tried to send invalid keystrokes. See the list of valid keystrokes. | ||||
JGS_SYSERROR | The function failed due to a system error |
Remarks
You cannot send keystrokes to the Host session when the keyboard is locked or busy (input inhibited). You can check the keyboard status with TestForKbUnlocked function. It is also your responsibility to treat input-protected or numeric-only host fields appropriately.
Sample Code
Dim result as Long
myString = "Testing@E"
result = sess.SendKeys(myString)
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.