/
SendKeys_Method
SendKeys_Method
Sends one or more keys to the currently connected host session.
The keystrokes appear to the session as if they are entered by a user. The keystrokes can include host function keys and AID keys.
Namespace: JollyGiant.Emulation
Assembly: JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
StatusCode SendKeys( string keys ) |
Visual Basic (Declaration) |
---|
Function SendKeys ( _ keys As String _ ) As StatusCode |
Visual C++ |
---|
StatusCode SendKeys( String^ keys ) |
JavaScript |
---|
function SendKeys(keys); |
Parameters
keys Type: System...String
String of keystrokes, maximum of 255 characters.
Return Value
The StatusCode indicating the result of the operation.
This can be one of the following values:
Status code | Description |
---|---|
WHLLOK | The keystrokes were sent successfully. |
WHLLNOTCONNECTED | Your application is not currently connected to a host session. |
WHLLPARAMETERERROR | The string of keys contains invalid data. |
WHLLPSBUSY | The session is busy; all of the keystrokes could not be sent. |
WHLLINHIBITED | Input to the session is inhibited; keystrokes were rejected or invalid host function key codes were sent. All of the keystrokes could not be sent. |
WHLLSYSERROR | The method failed due to a system error. |
Remarks
Please see the HLLAPI help file for details on key mnemonics.
See Also
ISession Interface
JollyGiant.Emulation Namespace
Send comments on this topic to Jolly Giant Software
Copyright 2009 by Jolly Giant Software, Inc.
, multiple selections available,
Related content
How to use Command Line Parameters
How to use Command Line Parameters
More like this
Command Line Parameters
Command Line Parameters
More like this
Command Line Parameter Syntax
Command Line Parameter Syntax
More like this
Undocumented Session Parameters
Undocumented Session Parameters
More like this
Sample Command Line Parameter Entries
Sample Command Line Parameter Entries
More like this
Installer Command Line Parameter Syntax
Installer Command Line Parameter Syntax
More like this