 | KeyboardGetSequenceFromKeyEvents Method (IListKeyValuePairKeyEventArgs, Boolean, Int32) |
Gets a string that can be passed to
Press(String) from a list of key events.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static string GetSequenceFromKeyEvents(
IList<KeyValuePair<KeyEventArgs, bool>> keyEvents,
int upDownEventRearrangeMaxDistance
)
Public Shared Function GetSequenceFromKeyEvents (
keyEvents As IList(Of KeyValuePair(Of KeyEventArgs, Boolean)),
upDownEventRearrangeMaxDistance As Integer
) As String
Parameters
- keyEvents
- Type: System.Collections.GenericIListKeyValuePairKeyEventArgs, Boolean
A list of key events. Each key event is a pair of KeyEventArgs
and a Boolean that specifies whether the key was pressed (true)
or released (false). - upDownEventRearrangeMaxDistance
- Type: SystemInt32
The maximum distance between up and down
events of a single key to be merged into a key press.
Return Value
Type:
StringThe key sequence represented as a string.
See Also