Use the putKeys method to type keys into the host screen.
void putKeys(String keys); |
Arguments
HostScreen
Required. HostScreen object.
keys
Required. Text string of characters to send to the host screen.
Remarks
Use this method to send text to the current screen and to tab between fields.
The putCommand method will result in interaction with the host and is like a putKeys with an assumed SEND. The putKeys method will result in interaction with the screen. You can mix simple text with special keystroke mnemonics (click here for a list of all key mnemonics).
The following example demonstrates a typical login sequence:
bool Signon(HostScreen oScreen, string userID, string pw)
{
oScreen.putKeys(userID+"[tab]"+pw);
return oScreen.putCommand("[enter]", 30000); // wait up to 30 seconds
}
The example above will send the text for userID and then tab to the next field and send the text the pw parameter. The putCommand method will send the "enter" action key and set a timeout of 30 seconds, causing the command buffer to be sent to the host.
Requirements
Inventu Viewer+
See Also
getScreen | putCommand | paddingChar | paddingMode | special key mnemonics
Applies To: HostScreen object
© 2022 Inventu Corporation