Show / Hide Table of Contents

Class keys.more

Miscellaneous rarely used keyboard-related functions.

public static class keys.more

Namespace: Au
Assembly: Au.dll
Inheritance
object
keys.more

Methods

Name Description
KKeyFromWpf(Key)

Converts key from WPF Key to KKey.

KKeyToWpf(KKey)

Converts key from KKey to WPF Key.

KModFromWinforms(Keys)

Converts modifier key flags from winforms Keys to KMod.

KModFromWpf(ModifierKeys)

Converts modifier key flags from WPF ModifierKeys to KMod.

KModToWinforms(KMod)

Converts modifier key flags from KMod to winforms Keys.

KModToWpf(KMod)

Converts modifier key flags from KMod to WPF ModifierKeys.

hotkeyToString(KMod, KKey)

Formats hotkey string like "Ctrl+Shift+K".

hotkeyToString(StringBuilder, KMod, KKey)

Formats hotkey string like "Ctrl+Shift+K".

keyToString(KKey)

Gets key name that can be used in keys strings with keys.send etc.

parseHotkeyString(string, out KMod, out KKey)

Converts string to KKey and KMod. For example, if s is "Ctrl+Left", sets mod = KMod.Ctrl, key = KKey.Left.

parseHotkeyString(string, out Keys)

Converts string to winforms System.Windows.Forms.Keys. For example, if s is "Ctrl+Left", sets hotkey = Keys.Control | Keys.Left.

parseHotkeyString(string, out ModifierKeys, out Key, out MouseAction)

Converts string to WPF System.Windows.Input.ModifierKeys and System.Windows.Input.Key or System.Windows.Input.MouseAction. For example, if s is "Ctrl+Left", sets mod = ModifierKeys.Control and key = Key.Left. Supported mouse button strings: "Click", "D-click", "R-click", "M-click", "Wheel". Example: "Ctrl+R-click". The first character of a mouse word is case-insensitive.

parseKeyName(string)

Converts key name to KKey.

parseKeyName(string, int, int)

Converts key name to KKey.

parseKeysString(string)

Converts keys string to KKey array.

parseTriggerString(string, out KMod, out KMod, out KKey, bool)

Parses hotkey trigger string or mouse trigger modifiers string. Like keys.more.parseHotkeyString, but supports "any mod" (like "Shift?+K" or "?+K") and noKey.

sendKey(KKey, bool?, nint, int?, bool)

Sends single key.