Click or drag to resize
Ranorex

KeyboardPress Method (Char, Duration, Int32)

Presses and releases the key associated with the specified character for the specified number of times.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void Press(
	char character,
	Duration keyPressTime,
	int times
)

Parameters

character
Type: SystemChar
A character associated with a key.
keyPressTime
Type: RanorexDuration
The time between pressing and releasing the key.
times
Type: SystemInt32
The number of times to press the key.
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