Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Makro
- {
- public class MakroKeys
- {
- public static string GetKeyString(Keys k)
- {
- string keyString = "";
- foreach (KeyValuePair<Keys, string> pair in keyMap)
- {
- if (pair.Key == k)
- {
- keyString = pair.Value;
- }
- }
- return keyString;
- }
- public static Keys GetKey(string k)
- {
- Keys key = Keys.Escape;
- foreach (KeyValuePair<string, Keys> pair in keyStringsMap)
- {
- if (pair.Key == k)
- {
- key = pair.Value;
- }
- }
- return key;
- }
- public static Keys GetKeyIgnoreCase(string k)
- {
- Keys key = Keys.Escape;
- string kLower = k.ToLower();
- foreach (KeyValuePair<string, Keys> pair in keyStringsMap)
- {
- if (pair.Key == kLower)
- {
- key = pair.Value;
- }
- }
- return key;
- }
- private static List<KeyValuePair<Keys, string>> keyMap = new List<KeyValuePair<Keys, string>>()
- {
- // The left mouse button.
- { new KeyValuePair<Keys, string>(Keys.LButton, "lbutton") },
- // The right mouse button.
- { new KeyValuePair<Keys, string>(Keys.RButton, "rbutton") },
- // The CANCEL key.
- { new KeyValuePair<Keys, string>(Keys.Cancel, "cancel") },
- // The middle mouse button (three-button mouse).
- { new KeyValuePair<Keys, string>(Keys.MButton, "mbutton") },
- // The first x mouse button (five-button mouse).
- { new KeyValuePair<Keys, string>(Keys.XButton1, "xbutton1") },
- // The second x mouse button (five-button mouse).
- { new KeyValuePair<Keys, string>(Keys.XButton2, "xbutton2") },
- // The BACKSPACE key.
- { new KeyValuePair<Keys, string>(Keys.Back, "back") },
- // The TAB key.
- { new KeyValuePair<Keys, string>(Keys.Tab, "tab") },
- // The LINEFEED key.
- { new KeyValuePair<Keys, string>(Keys.LineFeed, "linefeed") },
- // The CLEAR key.
- { new KeyValuePair<Keys, string>(Keys.Clear, "clear") },
- // The RETURN key.
- { new KeyValuePair<Keys, string>(Keys.Return, "return") },
- // The ENTER key.
- { new KeyValuePair<Keys, string>(Keys.Enter, "enter") },
- // The SHIFT key.
- { new KeyValuePair<Keys, string>(Keys.ShiftKey, "shiftkey") },
- // The CTRL key.
- { new KeyValuePair<Keys, string>(Keys.ControlKey, "controlkey") },
- // The ALT key.
- { new KeyValuePair<Keys, string>(Keys.Menu, "menu") },
- // The PAUSE key.
- { new KeyValuePair<Keys, string>(Keys.Pause, "pause") },
- // The CAPS LOCK key.
- { new KeyValuePair<Keys, string>(Keys.Capital, "capital") },
- // The CAPS LOCK key.
- { new KeyValuePair<Keys, string>(Keys.CapsLock, "capslock") },
- // The IME Kana mode key.
- { new KeyValuePair<Keys, string>(Keys.KanaMode, "kanamode") },
- // The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
- { new KeyValuePair<Keys, string>(Keys.HanguelMode, "hanguelmode") },
- // The IME Hangul mode key.
- { new KeyValuePair<Keys, string>(Keys.HangulMode, "hangulmode") },
- // The IME Junja mode key.
- { new KeyValuePair<Keys, string>(Keys.JunjaMode, "junjamode") },
- // The IME final mode key.
- { new KeyValuePair<Keys, string>(Keys.FinalMode, "finalmode") },
- // The IME Hanja mode key.
- { new KeyValuePair<Keys, string>(Keys.HanjaMode, "hanjamode") },
- // The IME Kanji mode key.
- { new KeyValuePair<Keys, string>(Keys.KanjiMode, "kanjimode") },
- // The ESC key.
- { new KeyValuePair<Keys, string>(Keys.Escape, "escape") },
- // The IME convert key.
- { new KeyValuePair<Keys, string>(Keys.IMEConvert, "imeconvert") },
- // The IME nonconvert key.
- { new KeyValuePair<Keys, string>(Keys.IMENonconvert, "imenonconvert") },
- // The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
- { new KeyValuePair<Keys, string>(Keys.IMEAccept, "imeaccept") },
- // The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
- { new KeyValuePair<Keys, string>(Keys.IMEAceept, "imeaceept") },
- // The IME mode change key.
- { new KeyValuePair<Keys, string>(Keys.IMEModeChange, "imemodechange") },
- // The SPACEBAR key.
- { new KeyValuePair<Keys, string>(Keys.Space, "space") },
- // The PAGE UP key.
- { new KeyValuePair<Keys, string>(Keys.Prior, "prior") },
- // The PAGE UP key.
- { new KeyValuePair<Keys, string>(Keys.PageUp, "pageup") },
- // The PAGE DOWN key.
- { new KeyValuePair<Keys, string>(Keys.Next, "next") },
- // The PAGE DOWN key.
- { new KeyValuePair<Keys, string>(Keys.PageDown, "pagedown") },
- // The END key.
- { new KeyValuePair<Keys, string>(Keys.End, "end") },
- // The HOME key.
- { new KeyValuePair<Keys, string>(Keys.Home, "home") },
- // The LEFT ARROW key.
- { new KeyValuePair<Keys, string>(Keys.Left, "left") },
- // The UP ARROW key.
- { new KeyValuePair<Keys, string>(Keys.Up, "up") },
- // The RIGHT ARROW key.
- { new KeyValuePair<Keys, string>(Keys.Right, "right") },
- // The DOWN ARROW key.
- { new KeyValuePair<Keys, string>(Keys.Down, "down") },
- // The SELECT key.
- { new KeyValuePair<Keys, string>(Keys.Select, "select") },
- // The PRINT key.
- { new KeyValuePair<Keys, string>(Keys.Print, "print") },
- // The EXECUTE key.
- { new KeyValuePair<Keys, string>(Keys.Execute, "execute") },
- // The PRINT SCREEN key.
- { new KeyValuePair<Keys, string>(Keys.Snapshot, "snapshot") },
- // The PRINT SCREEN key.
- { new KeyValuePair<Keys, string>(Keys.PrintScreen, "printscreen") },
- // The INS key.
- { new KeyValuePair<Keys, string>(Keys.Insert, "insert") },
- // The DEL key.
- { new KeyValuePair<Keys, string>(Keys.Delete, "delete") },
- // The HELP key.
- { new KeyValuePair<Keys, string>(Keys.Help, "help") },
- // The 0 key.
- { new KeyValuePair<Keys, string>(Keys.D0, "d0") },
- // The 1 key.
- { new KeyValuePair<Keys, string>(Keys.D1, "d1") },
- // The 2 key.
- { new KeyValuePair<Keys, string>(Keys.D2, "d2") },
- // The 3 key.
- { new KeyValuePair<Keys, string>(Keys.D3, "d3") },
- // The 4 key.
- { new KeyValuePair<Keys, string>(Keys.D4, "d4") },
- // The 5 key.
- { new KeyValuePair<Keys, string>(Keys.D5, "d5") },
- // The 6 key.
- { new KeyValuePair<Keys, string>(Keys.D6, "d6") },
- // The 7 key.
- { new KeyValuePair<Keys, string>(Keys.D7, "d7") },
- // The 8 key.
- { new KeyValuePair<Keys, string>(Keys.D8, "d8") },
- // The 9 key.
- { new KeyValuePair<Keys, string>(Keys.D9, "d9") },
- // The A key.
- { new KeyValuePair<Keys, string>(Keys.A, "a") },
- // The B key.
- { new KeyValuePair<Keys, string>(Keys.B, "b") },
- // The C key.
- { new KeyValuePair<Keys, string>(Keys.C, "c") },
- // The D key.
- { new KeyValuePair<Keys, string>(Keys.D, "d") },
- // The E key.
- { new KeyValuePair<Keys, string>(Keys.E, "e") },
- // The F key.
- { new KeyValuePair<Keys, string>(Keys.F, "f") },
- // The G key.
- { new KeyValuePair<Keys, string>(Keys.G, "g") },
- // The H key.
- { new KeyValuePair<Keys, string>(Keys.H, "h") },
- // The I key.
- { new KeyValuePair<Keys, string>(Keys.I, "i") },
- // The J key.
- { new KeyValuePair<Keys, string>(Keys.J, "j") },
- // The K key.
- { new KeyValuePair<Keys, string>(Keys.K, "k") },
- // The L key.
- { new KeyValuePair<Keys, string>(Keys.L, "l") },
- // The M key.
- { new KeyValuePair<Keys, string>(Keys.M, "m") },
- // The N key.
- { new KeyValuePair<Keys, string>(Keys.N, "n") },
- // The O key.
- { new KeyValuePair<Keys, string>(Keys.O, "o") },
- // The P key.
- { new KeyValuePair<Keys, string>(Keys.P, "p") },
- // The Q key.
- { new KeyValuePair<Keys, string>(Keys.Q, "q") },
- // The R key.
- { new KeyValuePair<Keys, string>(Keys.R, "r") },
- // The S key.
- { new KeyValuePair<Keys, string>(Keys.S, "s") },
- // The T key.
- { new KeyValuePair<Keys, string>(Keys.T, "t") },
- // The U key.
- { new KeyValuePair<Keys, string>(Keys.U, "u") },
- // The V key.
- { new KeyValuePair<Keys, string>(Keys.V, "v") },
- // The W key.
- { new KeyValuePair<Keys, string>(Keys.W, "w") },
- // The X key.
- { new KeyValuePair<Keys, string>(Keys.X, "x") },
- // The Y key.
- { new KeyValuePair<Keys, string>(Keys.Y, "y") },
- // The Z key.
- { new KeyValuePair<Keys, string>(Keys.Z, "z") },
- // The left Windows logo key (Microsoft Natural Keyboard).
- { new KeyValuePair<Keys, string>(Keys.LWin, "lwin") },
- // The right Windows logo key (Microsoft Natural Keyboard).
- { new KeyValuePair<Keys, string>(Keys.RWin, "rwin") },
- // The application key (Microsoft Natural Keyboard).
- { new KeyValuePair<Keys, string>(Keys.Apps, "apps") },
- // The computer sleep key.
- { new KeyValuePair<Keys, string>(Keys.Sleep, "sleep") },
- // The 0 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad0, "numpad0") },
- // The 1 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad1, "numpad1") },
- // The 2 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad2, "numpad2") },
- // The 3 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad3, "numpad3") },
- // The 4 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad4, "numpad4") },
- // The 5 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad5, "numpad5") },
- // The 6 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad6, "numpad6") },
- // The 7 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad7, "numpad7") },
- // The 8 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad8, "numpad8") },
- // The 9 key on the numeric keypad.
- { new KeyValuePair<Keys, string>(Keys.NumPad9, "numpad9") },
- // The multiply key.
- { new KeyValuePair<Keys, string>(Keys.Multiply, "multiply") },
- // The add key.
- { new KeyValuePair<Keys, string>(Keys.Add, "add") },
- // The separator key.
- { new KeyValuePair<Keys, string>(Keys.Separator, "separator") },
- // The subtract key.
- { new KeyValuePair<Keys, string>(Keys.Subtract, "subtract") },
- // The decimal key.
- { new KeyValuePair<Keys, string>(Keys.Decimal, "decimal") },
- // The divide key.
- { new KeyValuePair<Keys, string>(Keys.Divide, "divide") },
- // The F1 key.
- { new KeyValuePair<Keys, string>(Keys.F1, "f1") },
- // The F2 key.
- { new KeyValuePair<Keys, string>(Keys.F2, "f2") },
- // The F3 key.
- { new KeyValuePair<Keys, string>(Keys.F3, "f3") },
- // The F4 key.
- { new KeyValuePair<Keys, string>(Keys.F4, "f4") },
- // The F5 key.
- { new KeyValuePair<Keys, string>(Keys.F5, "f5") },
- // The F6 key.
- { new KeyValuePair<Keys, string>(Keys.F6, "f6") },
- // The F7 key.
- { new KeyValuePair<Keys, string>(Keys.F7, "f7") },
- // The F8 key.
- { new KeyValuePair<Keys, string>(Keys.F8, "f8") },
- // The F9 key.
- { new KeyValuePair<Keys, string>(Keys.F9, "f9") },
- // The F10 key.
- { new KeyValuePair<Keys, string>(Keys.F10, "f10") },
- // The F11 key.
- { new KeyValuePair<Keys, string>(Keys.F11, "f11") },
- // The F12 key.
- { new KeyValuePair<Keys, string>(Keys.F12, "f12") },
- // The F13 key.
- { new KeyValuePair<Keys, string>(Keys.F13, "f13") },
- // The F14 key.
- { new KeyValuePair<Keys, string>(Keys.F14, "f14") },
- // The F15 key.
- { new KeyValuePair<Keys, string>(Keys.F15, "f15") },
- // The F16 key.
- { new KeyValuePair<Keys, string>(Keys.F16, "f16") },
- // The F17 key.
- { new KeyValuePair<Keys, string>(Keys.F17, "f17") },
- // The F18 key.
- { new KeyValuePair<Keys, string>(Keys.F18, "f18") },
- // The F19 key.
- { new KeyValuePair<Keys, string>(Keys.F19, "f19") },
- // The F20 key.
- { new KeyValuePair<Keys, string>(Keys.F20, "f20") },
- // The F21 key.
- { new KeyValuePair<Keys, string>(Keys.F21, "f21") },
- // The F22 key.
- { new KeyValuePair<Keys, string>(Keys.F22, "f22") },
- // The F23 key.
- { new KeyValuePair<Keys, string>(Keys.F23, "f23") },
- // The F24 key.
- { new KeyValuePair<Keys, string>(Keys.F24, "f24") },
- // The NUM LOCK key.
- { new KeyValuePair<Keys, string>(Keys.NumLock, "numlock") },
- // The SCROLL LOCK key.
- { new KeyValuePair<Keys, string>(Keys.Scroll, "scroll") },
- // The left SHIFT key.
- { new KeyValuePair<Keys, string>(Keys.LShiftKey, "lshiftkey") },
- // The right SHIFT key.
- { new KeyValuePair<Keys, string>(Keys.RShiftKey, "rshiftkey") },
- // The left CTRL key.
- { new KeyValuePair<Keys, string>(Keys.LControlKey, "lcontrolkey") },
- // The right CTRL key.
- { new KeyValuePair<Keys, string>(Keys.RControlKey, "rcontrolkey") },
- // The left ALT key.
- { new KeyValuePair<Keys, string>(Keys.LMenu, "lmenu") },
- // The right ALT key.
- { new KeyValuePair<Keys, string>(Keys.RMenu, "rmenu") },
- // The browser back key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserBack, "browserback") },
- // The browser forward key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserForward, "browserforward") },
- // The browser refresh key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserRefresh, "browserrefresh") },
- // The browser stop key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserStop, "browserstop") },
- // The browser search key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserSearch, "browsersearch") },
- // The browser favorites key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserFavorites, "browserfavorites") },
- // The browser home key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.BrowserHome, "browserhome") },
- // The volume mute key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.VolumeMute, "volumemute") },
- // The volume down key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.VolumeDown, "volumedown") },
- // The volume up key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.VolumeUp, "volumeup") },
- // The media next track key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.MediaNextTrack, "medianexttrack") },
- // The media previous track key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.MediaPreviousTrack, "mediaprevioustrack") },
- // The media Stop key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.MediaStop, "mediastop") },
- // The media play pause key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.MediaPlayPause, "mediaplaypause") },
- // The launch mail key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.LaunchMail, "launchmail") },
- // The select media key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.SelectMedia, "selectmedia") },
- // The start application one key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.LaunchApplication1, "launchapplication1") },
- // The start application two key (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.LaunchApplication2, "launchapplication2") },
- // The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemSemicolon, "oemsemicolon") },
- // The OEM 1 key.
- { new KeyValuePair<Keys, string>(Keys.Oem1, "oem1") },
- // The OEM plus key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.Oemplus, "oemplus") },
- // The OEM comma key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.Oemcomma, "oemcomma") },
- // The OEM minus key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemMinus, "oemminus") },
- // The OEM period key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemPeriod, "oemperiod") },
- // The OEM question mark key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemQuestion, "oemquestion") },
- // The OEM 2 key.
- { new KeyValuePair<Keys, string>(Keys.Oem2, "oem2") },
- // The OEM tilde key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.Oemtilde, "oemtilde") },
- // The OEM 3 key.
- { new KeyValuePair<Keys, string>(Keys.Oem3, "oem3") },
- // The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemOpenBrackets, "oemopenbrackets") },
- // The OEM 4 key.
- { new KeyValuePair<Keys, string>(Keys.Oem4, "oem4") },
- // The OEM pipe key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemPipe, "oempipe") },
- // The OEM 5 key.
- { new KeyValuePair<Keys, string>(Keys.Oem5, "oem5") },
- // The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemCloseBrackets, "oemclosebrackets") },
- // The OEM 6 key.
- { new KeyValuePair<Keys, string>(Keys.Oem6, "oem6") },
- // The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<Keys, string>(Keys.OemQuotes, "oemquotes") },
- // The OEM 7 key.
- { new KeyValuePair<Keys, string>(Keys.Oem7, "oem7") },
- // The OEM 8 key.
- { new KeyValuePair<Keys, string>(Keys.Oem8, "oem8") },
- // The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000
- // or later).
- { new KeyValuePair<Keys, string>(Keys.OemBackslash, "oembackslash") },
- // The OEM 102 key.
- { new KeyValuePair<Keys, string>(Keys.Oem102, "oem102") },
- // The PROCESS KEY key.
- { new KeyValuePair<Keys, string>(Keys.ProcessKey, "processkey") },
- // Used to pass Unicode characters as if they were keystrokes. The Packet key value
- // is the low word of a 32-bit virtual-key value used for non-keyboard input methods.
- { new KeyValuePair<Keys, string>(Keys.Packet, "packet") },
- // The ATTN key.
- { new KeyValuePair<Keys, string>(Keys.Attn, "attn") },
- // The CRSEL key.
- { new KeyValuePair<Keys, string>(Keys.Crsel, "crsel") },
- // The EXSEL key.
- { new KeyValuePair<Keys, string>(Keys.Exsel, "exsel") },
- // The ERASE EOF key.
- { new KeyValuePair<Keys, string>(Keys.EraseEof, "eraseeof") },
- // The PLAY key.
- { new KeyValuePair<Keys, string>(Keys.Play, "play") },
- // The ZOOM key.
- { new KeyValuePair<Keys, string>(Keys.Zoom, "zoom") },
- // A constant reserved for future use.
- { new KeyValuePair<Keys, string>(Keys.NoName, "noname") },
- // The PA1 key.
- { new KeyValuePair<Keys, string>(Keys.Pa1, "pa1") },
- // The CLEAR key.
- { new KeyValuePair<Keys, string>(Keys.OemClear, "oemclear") }
- };
- private static List<KeyValuePair<string, Keys>> keyStringsMap = new List<KeyValuePair<string, Keys>>()
- {
- // The left mouse button.
- { new KeyValuePair<string, Keys>("lbutton", Keys.LButton) },
- // The right mouse button.
- { new KeyValuePair<string, Keys>("rbutton", Keys.RButton) },
- // The CANCEL key.
- { new KeyValuePair<string, Keys>("cancel", Keys.Cancel) },
- // The middle mouse button (three-button mouse).
- { new KeyValuePair<string, Keys>("mbutton", Keys.MButton) },
- // The first x mouse button (five-button mouse).
- { new KeyValuePair<string, Keys>("xbutton1", Keys.XButton1) },
- // The second x mouse button (five-button mouse).
- { new KeyValuePair<string, Keys>("xbutton2", Keys.XButton2) },
- // The BACKSPACE key.
- { new KeyValuePair<string, Keys>("back", Keys.Back) },
- // The TAB key.
- { new KeyValuePair<string, Keys>("tab", Keys.Tab) },
- // The LINEFEED key.
- { new KeyValuePair<string, Keys>("linefeed", Keys.LineFeed) },
- // The CLEAR key.
- { new KeyValuePair<string, Keys>("clear", Keys.Clear) },
- // The RETURN key.
- { new KeyValuePair<string, Keys>("return", Keys.Return) },
- // The ENTER key.
- { new KeyValuePair<string, Keys>("enter", Keys.Enter) },
- // The SHIFT key.
- { new KeyValuePair<string, Keys>("shiftkey", Keys.ShiftKey) },
- // The CTRL key.
- { new KeyValuePair<string, Keys>("controlkey", Keys.ControlKey) },
- // The ALT key.
- { new KeyValuePair<string, Keys>("menu", Keys.Menu) },
- // The PAUSE key.
- { new KeyValuePair<string, Keys>("pause", Keys.Pause) },
- // The CAPS LOCK key.
- { new KeyValuePair<string, Keys>("capital", Keys.Capital) },
- // The CAPS LOCK key.
- { new KeyValuePair<string, Keys>("capslock", Keys.CapsLock) },
- // The IME Kana mode key.
- { new KeyValuePair<string, Keys>("kanamode", Keys.KanaMode) },
- // The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
- { new KeyValuePair<string, Keys>("hanguelmode", Keys.HanguelMode) },
- // The IME Hangul mode key.
- { new KeyValuePair<string, Keys>("hangulmode", Keys.HangulMode) },
- // The IME Junja mode key.
- { new KeyValuePair<string, Keys>("junjamode", Keys.JunjaMode) },
- // The IME final mode key.
- { new KeyValuePair<string, Keys>("finalmode", Keys.FinalMode) },
- // The IME Hanja mode key.
- { new KeyValuePair<string, Keys>("hanjamode", Keys.HanjaMode) },
- // The IME Kanji mode key.
- { new KeyValuePair<string, Keys>("kanjimode", Keys.KanjiMode) },
- // The ESC key.
- { new KeyValuePair<string, Keys>("escape", Keys.Escape) },
- // The IME convert key.
- { new KeyValuePair<string, Keys>("imeconvert", Keys.IMEConvert) },
- // The IME nonconvert key.
- { new KeyValuePair<string, Keys>("imenonconvert", Keys.IMENonconvert) },
- // The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
- { new KeyValuePair<string, Keys>("imeaccept", Keys.IMEAccept) },
- // The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
- { new KeyValuePair<string, Keys>("imeaceept", Keys.IMEAceept) },
- // The IME mode change key.
- { new KeyValuePair<string, Keys>("imemodechange", Keys.IMEModeChange) },
- // The SPACEBAR key.
- { new KeyValuePair<string, Keys>("space", Keys.Space) },
- // The PAGE UP key.
- { new KeyValuePair<string, Keys>("prior", Keys.Prior) },
- // The PAGE UP key.
- { new KeyValuePair<string, Keys>("pageup", Keys.PageUp) },
- // The PAGE DOWN key.
- { new KeyValuePair<string, Keys>("next", Keys.Next) },
- // The PAGE DOWN key.
- { new KeyValuePair<string, Keys>("pagedown", Keys.PageDown) },
- // The END key.
- { new KeyValuePair<string, Keys>("end", Keys.End) },
- // The HOME key.
- { new KeyValuePair<string, Keys>("home", Keys.Home) },
- // The LEFT ARROW key.
- { new KeyValuePair<string, Keys>("left", Keys.Left) },
- // The UP ARROW key.
- { new KeyValuePair<string, Keys>("up", Keys.Up) },
- // The RIGHT ARROW key.
- { new KeyValuePair<string, Keys>("right", Keys.Right) },
- // The DOWN ARROW key.
- { new KeyValuePair<string, Keys>("down", Keys.Down) },
- // The SELECT key.
- { new KeyValuePair<string, Keys>("select", Keys.Select) },
- // The PRINT key.
- { new KeyValuePair<string, Keys>("print", Keys.Print) },
- // The EXECUTE key.
- { new KeyValuePair<string, Keys>("execute", Keys.Execute) },
- // The PRINT SCREEN key.
- { new KeyValuePair<string, Keys>("snapshot", Keys.Snapshot) },
- // The PRINT SCREEN key.
- { new KeyValuePair<string, Keys>("printscreen", Keys.PrintScreen) },
- // The INS key.
- { new KeyValuePair<string, Keys>("insert", Keys.Insert) },
- // The DEL key.
- { new KeyValuePair<string, Keys>("delete", Keys.Delete) },
- // The HELP key.
- { new KeyValuePair<string, Keys>("help", Keys.Help) },
- // The 0 key.
- { new KeyValuePair<string, Keys>("d0", Keys.D0) },
- // The 1 key.
- { new KeyValuePair<string, Keys>("d1", Keys.D1) },
- // The 2 key.
- { new KeyValuePair<string, Keys>("d2", Keys.D2) },
- // The 3 key.
- { new KeyValuePair<string, Keys>("d3", Keys.D3) },
- // The 4 key.
- { new KeyValuePair<string, Keys>("d4", Keys.D4) },
- // The 5 key.
- { new KeyValuePair<string, Keys>("d5", Keys.D5) },
- // The 6 key.
- { new KeyValuePair<string, Keys>("d6", Keys.D6) },
- // The 7 key.
- { new KeyValuePair<string, Keys>("d7", Keys.D7) },
- // The 8 key.
- { new KeyValuePair<string, Keys>("d8", Keys.D8) },
- // The 9 key.
- { new KeyValuePair<string, Keys>("d9", Keys.D9) },
- // The A key.
- { new KeyValuePair<string, Keys>("a", Keys.A) },
- // The B key.
- { new KeyValuePair<string, Keys>("b", Keys.B) },
- // The C key.
- { new KeyValuePair<string, Keys>("c", Keys.C) },
- // The D key.
- { new KeyValuePair<string, Keys>("d", Keys.D) },
- // The E key.
- { new KeyValuePair<string, Keys>("e", Keys.E) },
- // The F key.
- { new KeyValuePair<string, Keys>("f", Keys.F) },
- // The G key.
- { new KeyValuePair<string, Keys>("g", Keys.G) },
- // The H key.
- { new KeyValuePair<string, Keys>("h", Keys.H) },
- // The I key.
- { new KeyValuePair<string, Keys>("i", Keys.I) },
- // The J key.
- { new KeyValuePair<string, Keys>("j", Keys.J) },
- // The K key.
- { new KeyValuePair<string, Keys>("k", Keys.K) },
- // The L key.
- { new KeyValuePair<string, Keys>("l", Keys.L) },
- // The M key.
- { new KeyValuePair<string, Keys>("m", Keys.M) },
- // The N key.
- { new KeyValuePair<string, Keys>("n", Keys.N) },
- // The O key.
- { new KeyValuePair<string, Keys>("o", Keys.O) },
- // The P key.
- { new KeyValuePair<string, Keys>("p", Keys.P) },
- // The Q key.
- { new KeyValuePair<string, Keys>("q", Keys.Q) },
- // The R key.
- { new KeyValuePair<string, Keys>("r", Keys.R) },
- // The S key.
- { new KeyValuePair<string, Keys>("s", Keys.S) },
- // The T key.
- { new KeyValuePair<string, Keys>("t", Keys.T) },
- // The U key.
- { new KeyValuePair<string, Keys>("u", Keys.U) },
- // The V key.
- { new KeyValuePair<string, Keys>("v", Keys.V) },
- // The W key.
- { new KeyValuePair<string, Keys>("w", Keys.W) },
- // The X key.
- { new KeyValuePair<string, Keys>("x", Keys.X) },
- // The Y key.
- { new KeyValuePair<string, Keys>("y", Keys.Y) },
- // The Z key.
- { new KeyValuePair<string, Keys>("z", Keys.Z) },
- // The left Windows logo key (Microsoft Natural Keyboard).
- { new KeyValuePair<string, Keys>("lwin", Keys.LWin) },
- // The right Windows logo key (Microsoft Natural Keyboard).
- { new KeyValuePair<string, Keys>("rwin", Keys.RWin) },
- // The application key (Microsoft Natural Keyboard).
- { new KeyValuePair<string, Keys>("apps", Keys.Apps) },
- // The computer sleep key.
- { new KeyValuePair<string, Keys>("sleep", Keys.Sleep) },
- // The 0 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad0", Keys.NumPad0) },
- // The 1 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad1", Keys.NumPad1) },
- // The 2 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad2", Keys.NumPad2) },
- // The 3 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad3", Keys.NumPad3) },
- // The 4 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad4", Keys.NumPad4) },
- // The 5 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad5", Keys.NumPad5) },
- // The 6 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad6", Keys.NumPad6) },
- // The 7 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad7", Keys.NumPad7) },
- // The 8 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad8", Keys.NumPad8) },
- // The 9 key on the numeric keypad.
- { new KeyValuePair<string, Keys>("numpad9", Keys.NumPad9) },
- // The multiply key.
- { new KeyValuePair<string, Keys>("multiply", Keys.Multiply) },
- // The add key.
- { new KeyValuePair<string, Keys>("add", Keys.Add) },
- // The separator key.
- { new KeyValuePair<string, Keys>("separator", Keys.Separator) },
- // The subtract key.
- { new KeyValuePair<string, Keys>("subtract", Keys.Subtract) },
- // The decimal key.
- { new KeyValuePair<string, Keys>("decimal", Keys.Decimal) },
- // The divide key.
- { new KeyValuePair<string, Keys>("divide", Keys.Divide) },
- // The F1 key.
- { new KeyValuePair<string, Keys>("f1", Keys.F1) },
- // The F2 key.
- { new KeyValuePair<string, Keys>("f2", Keys.F2) },
- // The F3 key.
- { new KeyValuePair<string, Keys>("f3", Keys.F3) },
- // The F4 key.
- { new KeyValuePair<string, Keys>("f4", Keys.F4) },
- // The F5 key.
- { new KeyValuePair<string, Keys>("f5", Keys.F5) },
- // The F6 key.
- { new KeyValuePair<string, Keys>("f6", Keys.F6) },
- // The F7 key.
- { new KeyValuePair<string, Keys>("f7", Keys.F7) },
- // The F8 key.
- { new KeyValuePair<string, Keys>("f8", Keys.F8) },
- // The F9 key.
- { new KeyValuePair<string, Keys>("f9", Keys.F9) },
- // The F10 key.
- { new KeyValuePair<string, Keys>("f10", Keys.F10) },
- // The F11 key.
- { new KeyValuePair<string, Keys>("f11", Keys.F11) },
- // The F12 key.
- { new KeyValuePair<string, Keys>("f12", Keys.F12) },
- // The F13 key.
- { new KeyValuePair<string, Keys>("f13", Keys.F13) },
- // The F14 key.
- { new KeyValuePair<string, Keys>("f14", Keys.F14) },
- // The F15 key.
- { new KeyValuePair<string, Keys>("f15", Keys.F15) },
- // The F16 key.
- { new KeyValuePair<string, Keys>("f16", Keys.F16) },
- // The F17 key.
- { new KeyValuePair<string, Keys>("f17", Keys.F17) },
- // The F18 key.
- { new KeyValuePair<string, Keys>("f18", Keys.F18) },
- // The F19 key.
- { new KeyValuePair<string, Keys>("f19", Keys.F19) },
- // The F20 key.
- { new KeyValuePair<string, Keys>("f20", Keys.F20) },
- // The F21 key.
- { new KeyValuePair<string, Keys>("f21", Keys.F21) },
- // The F22 key.
- { new KeyValuePair<string, Keys>("f22", Keys.F22) },
- // The F23 key.
- { new KeyValuePair<string, Keys>("f23", Keys.F23) },
- // The F24 key.
- { new KeyValuePair<string, Keys>("f24", Keys.F24) },
- // The NUM LOCK key.
- { new KeyValuePair<string, Keys>("numlock", Keys.NumLock) },
- // The SCROLL LOCK key.
- { new KeyValuePair<string, Keys>("scroll", Keys.Scroll) },
- // The left SHIFT key.
- { new KeyValuePair<string, Keys>("lshiftkey", Keys.LShiftKey) },
- // The right SHIFT key.
- { new KeyValuePair<string, Keys>("rshiftkey", Keys.RShiftKey) },
- // The left CTRL key.
- { new KeyValuePair<string, Keys>("lcontrolkey", Keys.LControlKey) },
- // The right CTRL key.
- { new KeyValuePair<string, Keys>("rcontrolkey", Keys.RControlKey) },
- // The left ALT key.
- { new KeyValuePair<string, Keys>("lmenu", Keys.LMenu) },
- // The right ALT key.
- { new KeyValuePair<string, Keys>("rmenu", Keys.RMenu) },
- // The browser back key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserback", Keys.BrowserBack) },
- // The browser forward key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserforward", Keys.BrowserForward) },
- // The browser refresh key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserrefresh", Keys.BrowserRefresh) },
- // The browser stop key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserstop", Keys.BrowserStop) },
- // The browser search key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browsersearch", Keys.BrowserSearch) },
- // The browser favorites key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserfavorites", Keys.BrowserFavorites) },
- // The browser home key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("browserhome", Keys.BrowserHome) },
- // The volume mute key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("volumemute", Keys.VolumeMute) },
- // The volume down key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("volumedown", Keys.VolumeDown) },
- // The volume up key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("volumeup", Keys.VolumeUp) },
- // The media next track key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("medianexttrack", Keys.MediaNextTrack) },
- // The media previous track key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("mediaprevioustrack", Keys.MediaPreviousTrack) },
- // The media Stop key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("mediastop", Keys.MediaStop) },
- // The media play pause key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("mediaplaypause", Keys.MediaPlayPause) },
- // The launch mail key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("launchmail", Keys.LaunchMail) },
- // The select media key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("selectmedia", Keys.SelectMedia) },
- // The start application one key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("launchapplication1", Keys.LaunchApplication1) },
- // The start application two key (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("launchapplication2", Keys.LaunchApplication2) },
- // The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemsemicolon", Keys.OemSemicolon) },
- // The OEM 1 key.
- { new KeyValuePair<string, Keys>("oem1", Keys.Oem1) },
- // The OEM plus key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemplus", Keys.Oemplus) },
- // The OEM comma key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemcomma", Keys.Oemcomma) },
- // The OEM minus key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemminus", Keys.OemMinus) },
- // The OEM period key on any country/region keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemperiod", Keys.OemPeriod) },
- // The OEM question mark key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemquestion", Keys.OemQuestion) },
- // The OEM 2 key.
- { new KeyValuePair<string, Keys>("oem2", Keys.Oem2) },
- // The OEM tilde key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemtilde", Keys.Oemtilde) },
- // The OEM 3 key.
- { new KeyValuePair<string, Keys>("oem3", Keys.Oem3) },
- // The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemopenbrackets", Keys.OemOpenBrackets) },
- // The OEM 4 key.
- { new KeyValuePair<string, Keys>("oem4", Keys.Oem4) },
- // The OEM pipe key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oempipe", Keys.OemPipe) },
- // The OEM 5 key.
- { new KeyValuePair<string, Keys>("oem5", Keys.Oem5) },
- // The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemclosebrackets", Keys.OemCloseBrackets) },
- // The OEM 6 key.
- { new KeyValuePair<string, Keys>("oem6", Keys.Oem6) },
- // The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later).
- { new KeyValuePair<string, Keys>("oemquotes", Keys.OemQuotes) },
- // The OEM 7 key.
- { new KeyValuePair<string, Keys>("oem7", Keys.Oem7) },
- // The OEM 8 key.
- { new KeyValuePair<string, Keys>("oem8", Keys.Oem8) },
- // The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000
- // or later).
- { new KeyValuePair<string, Keys>("oembackslash", Keys.OemBackslash) },
- // The OEM 102 key.
- { new KeyValuePair<string, Keys>("oem102", Keys.Oem102) },
- // The PROCESS KEY key.
- { new KeyValuePair<string, Keys>("processkey", Keys.ProcessKey) },
- // Used to pass Unicode characters as if they were keystrokes. The Packet key value
- // is the low word of a 32-bit virtual-key value used for non-keyboard input methods.
- { new KeyValuePair<string, Keys>("packet", Keys.Packet) },
- // The ATTN key.
- { new KeyValuePair<string, Keys>("attn", Keys.Attn) },
- // The CRSEL key.
- { new KeyValuePair<string, Keys>("crsel", Keys.Crsel) },
- // The EXSEL key.
- { new KeyValuePair<string, Keys>("exsel", Keys.Exsel) },
- // The ERASE EOF key.
- { new KeyValuePair<string, Keys>("eraseeof", Keys.EraseEof) },
- // The PLAY key.
- { new KeyValuePair<string, Keys>("play", Keys.Play) },
- // The ZOOM key.
- { new KeyValuePair<string, Keys>("zoom", Keys.Zoom) },
- // A constant reserved for future use.
- { new KeyValuePair<string, Keys>("noname", Keys.NoName) },
- // The PA1 key.
- { new KeyValuePair<string, Keys>("pa1", Keys.Pa1) },
- // The CLEAR key.
- { new KeyValuePair<string, Keys>("oemclear", Keys.OemClear) }
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement