Class VirtualKeyboardNativeMethods
Inheritance
Inherited Members
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: TelerikCommon.dll
Syntax
public static class VirtualKeyboardNativeMethods
Fields
INPUT_KEYBOARD
Declaration
public const int INPUT_KEYBOARD = 1
Field Value
System.Int32
|
KEYEVENTF_EXTENDEDKEY
Declaration
public const uint KEYEVENTF_EXTENDEDKEY = 1U
Field Value
System.UInt32
|
KEYEVENTF_KEYUP
Declaration
public const uint KEYEVENTF_KEYUP = 2U
Field Value
System.UInt32
|
KEYEVENTF_SCANCODE
Declaration
public const uint KEYEVENTF_SCANCODE = 8U
Field Value
System.UInt32
|
KEYEVENTF_UNICODE
Declaration
public const uint KEYEVENTF_UNICODE = 4U
Field Value
System.UInt32
|
WH_KEYBOARD_LL
Declaration
public const int WH_KEYBOARD_LL = 13
Field Value
System.Int32
|
Properties
KeyListeners
Declaration
public static List<IKeyPressedListener> KeyListeners { get; }
Property Value
System.Collections.Generic.List<IKeyPressedListener>
|
Methods
GetCharsFromKeys(Keys, Boolean, Boolean, Boolean)
Declaration
public static string GetCharsFromKeys(Keys keys, bool shift, bool alt, bool capsLock)
Parameters
System.Windows.Forms.Keys
keys
|
System.Boolean
shift
|
System.Boolean
alt
|
System.Boolean
capsLock
|
Returns
System.String
|
GetCharsFromVirtualKeyCode(UInt32, Boolean, Boolean, Boolean)
Declaration
public static string GetCharsFromVirtualKeyCode(uint virtualKeyCode, bool shift, bool alt, bool capsLock)
Parameters
System.UInt32
virtualKeyCode
|
System.Boolean
shift
|
System.Boolean
alt
|
System.Boolean
capsLock
|
Returns
System.String
|
GetForeGroundWindowCulture()
Declaration
public static CultureInfo GetForeGroundWindowCulture()
Returns
System.Globalization.CultureInfo
|
GetKeyboardLayout(UInt32)
Declaration
public static IntPtr GetKeyboardLayout(uint idThread)
Parameters
System.UInt32
idThread
|
Returns
System.IntPtr
|
GetKeyboardState(Byte[])
Declaration
public static bool GetKeyboardState(byte[] lpKeyState)
Parameters
System.Byte[]
lpKeyState
|
Returns
System.Boolean
|
GetKeyState(Int32)
Declaration
public static short GetKeyState(int nVirtKey)
Parameters
System.Int32
nVirtKey
|
Returns
System.Int16
|
GetWindowThreadProcessId(IntPtr, IntPtr)
Declaration
public static uint GetWindowThreadProcessId(IntPtr hWnd, IntPtr processId)
Parameters
System.IntPtr
hWnd
|
System.IntPtr
processId
|
Returns
System.UInt32
|
IsWindow(IntPtr)
Declaration
public static bool IsWindow(IntPtr hWnd)
Parameters
System.IntPtr
hWnd
|
Returns
System.Boolean
|
MapVirtualKey(UInt32, UInt32)
Declaration
public static uint MapVirtualKey(uint uCode, uint uMapType)
Parameters
System.UInt32
uCode
|
System.UInt32
uMapType
|
Returns
System.UInt32
|
Send(IList<Int32>, Char)
Declaration
public static void Send(IList<int> modifierKeys, char symbol)
Parameters
System.Collections.Generic.IList<System.Int32>
modifierKeys
|
System.Char
symbol
|
Send(IList<Int32>, String)
Declaration
public static void Send(IList<int> modifierKeys, string text)
Parameters
System.Collections.Generic.IList<System.Int32>
modifierKeys
|
System.String
text
|
Send(List<Int32>, Int32)
Declaration
public static void Send(List<int> modifierKeys, int virtualKey)
Parameters
System.Collections.Generic.List<System.Int32>
modifierKeys
|
System.Int32
virtualKey
|
SendInput(UInt32, VirtualKeyboardNativeMethods.INPUT[], Int32)
Declaration
public static uint SendInput(uint numberOfInputs, VirtualKeyboardNativeMethods.INPUT[] inputs, int sizeOfInputStructure)
Parameters
System.UInt32
numberOfInputs
|
VirtualKeyboardNativeMethods.INPUT[]
inputs
|
System.Int32
sizeOfInputStructure
|
Returns
System.UInt32
|
SendToggleKey(Int32)
Declaration
public static void SendToggleKey(int virtualKey)
Parameters
System.Int32
virtualKey
|
ToUnicode(UInt32, UInt32, Byte[], StringBuilder, Int32, UInt32)
Declaration
public static int ToUnicode(uint virtualKeyCode, uint scanCode, byte[] keyboardState, StringBuilder receivingBuffer, int bufferSize, uint flags)
Parameters
System.UInt32
virtualKeyCode
|
System.UInt32
scanCode
|
System.Byte[]
keyboardState
|
System.Text.StringBuilder
receivingBuffer
|
System.Int32
bufferSize
|
System.UInt32
flags
|
Returns
System.Int32
|
ToUnicodeEx(UInt32, UInt32, Byte[], StringBuilder, Int32, UInt32, IntPtr)
Declaration
public static int ToUnicodeEx(uint wVirtKey, uint wScanCode, byte[] lpKeyState, StringBuilder pwszBuff, int cchBuff, uint wFlags, IntPtr dwhkl)
Parameters
System.UInt32
wVirtKey
|
System.UInt32
wScanCode
|
System.Byte[]
lpKeyState
|
System.Text.StringBuilder
pwszBuff
|
System.Int32
cchBuff
|
System.UInt32
wFlags
|
System.IntPtr
dwhkl
|
Returns
System.Int32
|
VkKeyScan(Char)
Declaration
public static byte VkKeyScan(char ch)
Parameters
System.Char
ch
|
Returns
System.Byte
|