Click or drag to resize
Ranorex

KeyboardSet Method (Char, Boolean)

Sets the state of the key associated with the specified character 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(
	char character,
	bool down
)

Parameters

character
Type: SystemChar
A character associated with a key.
down
Type: SystemBoolean
True to press the key, false to release it.
Remarks
This method may cause modifier keys (like ControlKey or ShiftKey) to be pressed or released. The original state of these modifier keys is restored by this method.
See Also