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