 | 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
Syntaxpublic static void Press(
Keys keyCode,
Duration keyPressTime
)
Public Shared Sub Press (
keyCode As Keys,
keyPressTime As Duration
)
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