Click or drag to resize
Ranorex

KeyboardPress Method (Keys, Duration)

Presses the specified key and releases it again after the specified time.

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

Parameters

keyCode
Type: System.Windows.FormsKeys
The key.
keyPressTime
Type: RanorexDuration
The time between pressing and releasing the key.
Remarks
This method does not consider modifier flags (like Control or Shift) in the keyCode.
See Also