 | KeyboardSet Method (Keys, Boolean) |
Sets the state of the specified key to either pressed/down or released/up.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void Set(
Keys keyCode,
bool down
)
Public Shared Sub Set (
keyCode As Keys,
down As Boolean
)
Parameters
- keyCode
- Type: System.Windows.FormsKeys
The key. - down
- Type: SystemBoolean
True to press the key, false to release it.
Remarks
This method does not consider modifier flags (like Control
or Shift) in the keyCode.
See Also