Click or drag to resize
Ranorex

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
Syntax
public static string GetSequenceFromKeyEvents(
	IList<KeyValuePair<KeyEventArgs, bool>> keyEvents,
	int upDownEventRearrangeMaxDistance
)

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: String
The key sequence represented as a string.
See Also