 | KeyboardSet Method (Keys, Int32, Boolean, 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 key,
int scanCode,
bool down,
bool setModifiers
)
Public Shared Sub Set (
key As Keys,
scanCode As Integer,
down As Boolean,
setModifiers As Boolean
)
Parameters
- key
- Type: System.Windows.FormsKeys
The key. - scanCode
- Type: SystemInt32
The hardware scan code for the key. Specify DefaultScanCode
to use the default scan code for the specified virtual key. - down
- Type: SystemBoolean
True to press the key, false to release it. - setModifiers
- Type: SystemBoolean
A value specifying whether to set the modifiers specified
in the key.
See Also