Click or drag to resize
Ranorex

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
Syntax
public static void Set(
	Keys keyCode,
	bool down
)

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