 | KeyboardPress Method (Char, Boolean) |
Presses the key associated with the specified character and releases it again.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void Press(
char character,
bool resetModifiers
)
Public Shared Sub Press (
character As Char,
resetModifiers As Boolean
)
Parameters
- character
- Type: SystemChar
A character associated with a key. - resetModifiers
- Type: SystemBoolean
True to reset the state of modifier keys (e.g. the
ShiftKey) to the original state before the call
to this method.
Remarks
This method may cause modifier keys (like ControlKey
or ShiftKey) to be pressed or released.
See Also