Advertisement
Guest User

System.Windows.Forms.Keys and string conversions

a guest
Jan 25th, 2017
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 44.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7.  
  8. namespace Makro
  9. {
  10.     public class MakroKeys
  11.     {
  12.         public static string GetKeyString(Keys k)
  13.         {
  14.             string keyString = "";
  15.  
  16.             foreach (KeyValuePair<Keys, string> pair in keyMap)
  17.             {
  18.                 if (pair.Key == k)
  19.                 {
  20.                     keyString = pair.Value;
  21.                 }
  22.             }
  23.  
  24.             return keyString;
  25.         }
  26.  
  27.         public static Keys GetKey(string k)
  28.         {
  29.             Keys key = Keys.Escape;
  30.  
  31.             foreach (KeyValuePair<string, Keys> pair in keyStringsMap)
  32.             {
  33.                 if (pair.Key == k)
  34.                 {
  35.                     key = pair.Value;
  36.                 }
  37.             }
  38.  
  39.             return key;
  40.         }
  41.  
  42.         public static Keys GetKeyIgnoreCase(string k)
  43.         {
  44.             Keys key = Keys.Escape;
  45.  
  46.             string kLower = k.ToLower();
  47.  
  48.             foreach (KeyValuePair<string, Keys> pair in keyStringsMap)
  49.             {
  50.                 if (pair.Key == kLower)
  51.                 {
  52.                     key = pair.Value;
  53.                 }
  54.             }
  55.  
  56.             return key;
  57.         }
  58.  
  59.  
  60.         private static List<KeyValuePair<Keys, string>> keyMap = new List<KeyValuePair<Keys, string>>()
  61.         {
  62.             // The left mouse button.
  63.             { new KeyValuePair<Keys, string>(Keys.LButton, "lbutton") },
  64.  
  65.             // The right mouse button.
  66.             { new KeyValuePair<Keys, string>(Keys.RButton, "rbutton") },
  67.  
  68.             // The CANCEL key.
  69.             { new KeyValuePair<Keys, string>(Keys.Cancel, "cancel") },
  70.  
  71.             // The middle mouse button (three-button mouse).
  72.             { new KeyValuePair<Keys, string>(Keys.MButton, "mbutton") },
  73.  
  74.             // The first x mouse button (five-button mouse).
  75.             { new KeyValuePair<Keys, string>(Keys.XButton1, "xbutton1") },
  76.  
  77.             // The second x mouse button (five-button mouse).
  78.             { new KeyValuePair<Keys, string>(Keys.XButton2, "xbutton2") },
  79.  
  80.             // The BACKSPACE key.
  81.             { new KeyValuePair<Keys, string>(Keys.Back, "back") },
  82.  
  83.             // The TAB key.
  84.             { new KeyValuePair<Keys, string>(Keys.Tab, "tab") },
  85.  
  86.             // The LINEFEED key.
  87.             { new KeyValuePair<Keys, string>(Keys.LineFeed, "linefeed") },
  88.  
  89.             // The CLEAR key.
  90.             { new KeyValuePair<Keys, string>(Keys.Clear, "clear") },
  91.  
  92.             // The RETURN key.
  93.             { new KeyValuePair<Keys, string>(Keys.Return, "return") },
  94.  
  95.             // The ENTER key.
  96.             { new KeyValuePair<Keys, string>(Keys.Enter, "enter") },
  97.  
  98.             // The SHIFT key.
  99.             { new KeyValuePair<Keys, string>(Keys.ShiftKey, "shiftkey") },
  100.  
  101.             // The CTRL key.
  102.             { new KeyValuePair<Keys, string>(Keys.ControlKey, "controlkey") },
  103.  
  104.             // The ALT key.
  105.             { new KeyValuePair<Keys, string>(Keys.Menu, "menu") },
  106.  
  107.             // The PAUSE key.
  108.             { new KeyValuePair<Keys, string>(Keys.Pause, "pause") },
  109.  
  110.             // The CAPS LOCK key.
  111.             { new KeyValuePair<Keys, string>(Keys.Capital, "capital") },
  112.  
  113.             // The CAPS LOCK key.
  114.             { new KeyValuePair<Keys, string>(Keys.CapsLock, "capslock") },
  115.  
  116.             // The IME Kana mode key.
  117.             { new KeyValuePair<Keys, string>(Keys.KanaMode, "kanamode") },
  118.  
  119.             // The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
  120.             { new KeyValuePair<Keys, string>(Keys.HanguelMode, "hanguelmode") },
  121.  
  122.             // The IME Hangul mode key.
  123.             { new KeyValuePair<Keys, string>(Keys.HangulMode, "hangulmode") },
  124.  
  125.             // The IME Junja mode key.
  126.             { new KeyValuePair<Keys, string>(Keys.JunjaMode, "junjamode") },
  127.  
  128.             // The IME final mode key.
  129.             { new KeyValuePair<Keys, string>(Keys.FinalMode, "finalmode") },
  130.  
  131.             // The IME Hanja mode key.
  132.             { new KeyValuePair<Keys, string>(Keys.HanjaMode, "hanjamode") },
  133.  
  134.             // The IME Kanji mode key.
  135.             { new KeyValuePair<Keys, string>(Keys.KanjiMode, "kanjimode") },
  136.  
  137.             // The ESC key.
  138.             { new KeyValuePair<Keys, string>(Keys.Escape, "escape") },
  139.  
  140.             // The IME convert key.
  141.             { new KeyValuePair<Keys, string>(Keys.IMEConvert, "imeconvert") },
  142.  
  143.             // The IME nonconvert key.
  144.             { new KeyValuePair<Keys, string>(Keys.IMENonconvert, "imenonconvert") },
  145.  
  146.             // The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
  147.             { new KeyValuePair<Keys, string>(Keys.IMEAccept, "imeaccept") },
  148.  
  149.             // The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
  150.             { new KeyValuePair<Keys, string>(Keys.IMEAceept, "imeaceept") },
  151.  
  152.             // The IME mode change key.
  153.             { new KeyValuePair<Keys, string>(Keys.IMEModeChange, "imemodechange") },
  154.  
  155.             // The SPACEBAR key.
  156.             { new KeyValuePair<Keys, string>(Keys.Space, "space") },
  157.  
  158.             // The PAGE UP key.
  159.             { new KeyValuePair<Keys, string>(Keys.Prior, "prior") },
  160.  
  161.             // The PAGE UP key.
  162.             { new KeyValuePair<Keys, string>(Keys.PageUp, "pageup") },
  163.  
  164.             // The PAGE DOWN key.
  165.             { new KeyValuePair<Keys, string>(Keys.Next, "next") },
  166.  
  167.             // The PAGE DOWN key.
  168.             { new KeyValuePair<Keys, string>(Keys.PageDown, "pagedown") },
  169.  
  170.             // The END key.
  171.             { new KeyValuePair<Keys, string>(Keys.End, "end") },
  172.  
  173.             // The HOME key.
  174.             { new KeyValuePair<Keys, string>(Keys.Home, "home") },
  175.  
  176.             // The LEFT ARROW key.
  177.             { new KeyValuePair<Keys, string>(Keys.Left, "left") },
  178.  
  179.             // The UP ARROW key.
  180.             { new KeyValuePair<Keys, string>(Keys.Up, "up") },
  181.  
  182.             // The RIGHT ARROW key.
  183.             { new KeyValuePair<Keys, string>(Keys.Right, "right") },
  184.  
  185.             // The DOWN ARROW key.
  186.             { new KeyValuePair<Keys, string>(Keys.Down, "down") },
  187.  
  188.             // The SELECT key.
  189.             { new KeyValuePair<Keys, string>(Keys.Select, "select") },
  190.  
  191.             // The PRINT key.
  192.             { new KeyValuePair<Keys, string>(Keys.Print, "print") },
  193.  
  194.             // The EXECUTE key.
  195.             { new KeyValuePair<Keys, string>(Keys.Execute, "execute") },
  196.  
  197.             // The PRINT SCREEN key.
  198.             { new KeyValuePair<Keys, string>(Keys.Snapshot, "snapshot") },
  199.  
  200.             // The PRINT SCREEN key.
  201.             { new KeyValuePair<Keys, string>(Keys.PrintScreen, "printscreen") },
  202.  
  203.             // The INS key.
  204.             { new KeyValuePair<Keys, string>(Keys.Insert, "insert") },
  205.  
  206.             // The DEL key.
  207.             { new KeyValuePair<Keys, string>(Keys.Delete, "delete") },
  208.  
  209.             // The HELP key.
  210.             { new KeyValuePair<Keys, string>(Keys.Help, "help") },
  211.  
  212.             // The 0 key.
  213.             { new KeyValuePair<Keys, string>(Keys.D0, "d0") },
  214.  
  215.             // The 1 key.
  216.             { new KeyValuePair<Keys, string>(Keys.D1, "d1") },
  217.  
  218.             // The 2 key.
  219.             { new KeyValuePair<Keys, string>(Keys.D2, "d2") },
  220.  
  221.             // The 3 key.
  222.             { new KeyValuePair<Keys, string>(Keys.D3, "d3") },
  223.  
  224.             // The 4 key.
  225.             { new KeyValuePair<Keys, string>(Keys.D4, "d4") },
  226.  
  227.             // The 5 key.
  228.             { new KeyValuePair<Keys, string>(Keys.D5, "d5") },
  229.  
  230.             // The 6 key.
  231.             { new KeyValuePair<Keys, string>(Keys.D6, "d6") },
  232.  
  233.             // The 7 key.
  234.             { new KeyValuePair<Keys, string>(Keys.D7, "d7") },
  235.  
  236.             // The 8 key.
  237.             { new KeyValuePair<Keys, string>(Keys.D8, "d8") },
  238.  
  239.             // The 9 key.
  240.             { new KeyValuePair<Keys, string>(Keys.D9, "d9") },
  241.  
  242.             // The A key.
  243.             { new KeyValuePair<Keys, string>(Keys.A, "a") },
  244.  
  245.             // The B key.
  246.             { new KeyValuePair<Keys, string>(Keys.B, "b") },
  247.  
  248.             // The C key.
  249.             { new KeyValuePair<Keys, string>(Keys.C, "c") },
  250.  
  251.             // The D key.
  252.             { new KeyValuePair<Keys, string>(Keys.D, "d") },
  253.  
  254.             // The E key.
  255.             { new KeyValuePair<Keys, string>(Keys.E, "e") },
  256.  
  257.             // The F key.
  258.             { new KeyValuePair<Keys, string>(Keys.F, "f") },
  259.  
  260.             // The G key.
  261.             { new KeyValuePair<Keys, string>(Keys.G, "g") },
  262.  
  263.             // The H key.
  264.             { new KeyValuePair<Keys, string>(Keys.H, "h") },
  265.  
  266.             // The I key.
  267.             { new KeyValuePair<Keys, string>(Keys.I, "i") },
  268.  
  269.             // The J key.
  270.             { new KeyValuePair<Keys, string>(Keys.J, "j") },
  271.  
  272.             // The K key.
  273.             { new KeyValuePair<Keys, string>(Keys.K, "k") },
  274.  
  275.             // The L key.
  276.             { new KeyValuePair<Keys, string>(Keys.L, "l") },
  277.  
  278.             // The M key.
  279.             { new KeyValuePair<Keys, string>(Keys.M, "m") },
  280.  
  281.             // The N key.
  282.             { new KeyValuePair<Keys, string>(Keys.N, "n") },
  283.  
  284.             // The O key.
  285.             { new KeyValuePair<Keys, string>(Keys.O, "o") },
  286.  
  287.             // The P key.
  288.             { new KeyValuePair<Keys, string>(Keys.P, "p") },
  289.  
  290.             // The Q key.
  291.             { new KeyValuePair<Keys, string>(Keys.Q, "q") },
  292.  
  293.             // The R key.
  294.             { new KeyValuePair<Keys, string>(Keys.R, "r") },
  295.  
  296.             // The S key.
  297.             { new KeyValuePair<Keys, string>(Keys.S, "s") },
  298.  
  299.             // The T key.
  300.             { new KeyValuePair<Keys, string>(Keys.T, "t") },
  301.  
  302.             // The U key.
  303.             { new KeyValuePair<Keys, string>(Keys.U, "u") },
  304.  
  305.             // The V key.
  306.             { new KeyValuePair<Keys, string>(Keys.V, "v") },
  307.  
  308.             // The W key.
  309.             { new KeyValuePair<Keys, string>(Keys.W, "w") },
  310.  
  311.             // The X key.
  312.             { new KeyValuePair<Keys, string>(Keys.X, "x") },
  313.  
  314.             // The Y key.
  315.             { new KeyValuePair<Keys, string>(Keys.Y, "y") },
  316.  
  317.             // The Z key.
  318.             { new KeyValuePair<Keys, string>(Keys.Z, "z") },
  319.  
  320.             // The left Windows logo key (Microsoft Natural Keyboard).
  321.             { new KeyValuePair<Keys, string>(Keys.LWin, "lwin") },
  322.  
  323.             // The right Windows logo key (Microsoft Natural Keyboard).
  324.             { new KeyValuePair<Keys, string>(Keys.RWin, "rwin") },
  325.  
  326.             // The application key (Microsoft Natural Keyboard).
  327.             { new KeyValuePair<Keys, string>(Keys.Apps, "apps") },
  328.  
  329.             // The computer sleep key.
  330.             { new KeyValuePair<Keys, string>(Keys.Sleep, "sleep") },
  331.  
  332.             // The 0 key on the numeric keypad.
  333.             { new KeyValuePair<Keys, string>(Keys.NumPad0, "numpad0") },
  334.  
  335.             // The 1 key on the numeric keypad.
  336.             { new KeyValuePair<Keys, string>(Keys.NumPad1, "numpad1") },
  337.  
  338.             // The 2 key on the numeric keypad.
  339.             { new KeyValuePair<Keys, string>(Keys.NumPad2, "numpad2") },
  340.  
  341.             // The 3 key on the numeric keypad.
  342.             { new KeyValuePair<Keys, string>(Keys.NumPad3, "numpad3") },
  343.  
  344.             // The 4 key on the numeric keypad.
  345.             { new KeyValuePair<Keys, string>(Keys.NumPad4, "numpad4") },
  346.  
  347.             // The 5 key on the numeric keypad.
  348.             { new KeyValuePair<Keys, string>(Keys.NumPad5, "numpad5") },
  349.  
  350.             // The 6 key on the numeric keypad.
  351.             { new KeyValuePair<Keys, string>(Keys.NumPad6, "numpad6") },
  352.  
  353.             // The 7 key on the numeric keypad.
  354.             { new KeyValuePair<Keys, string>(Keys.NumPad7, "numpad7") },
  355.  
  356.             // The 8 key on the numeric keypad.
  357.             { new KeyValuePair<Keys, string>(Keys.NumPad8, "numpad8") },
  358.  
  359.             // The 9 key on the numeric keypad.
  360.             { new KeyValuePair<Keys, string>(Keys.NumPad9, "numpad9") },
  361.  
  362.             // The multiply key.
  363.             { new KeyValuePair<Keys, string>(Keys.Multiply, "multiply") },
  364.  
  365.             // The add key.
  366.             { new KeyValuePair<Keys, string>(Keys.Add, "add") },
  367.  
  368.             // The separator key.
  369.             { new KeyValuePair<Keys, string>(Keys.Separator, "separator") },
  370.  
  371.             // The subtract key.
  372.             { new KeyValuePair<Keys, string>(Keys.Subtract, "subtract") },
  373.  
  374.             // The decimal key.
  375.             { new KeyValuePair<Keys, string>(Keys.Decimal, "decimal") },
  376.  
  377.             // The divide key.
  378.             { new KeyValuePair<Keys, string>(Keys.Divide, "divide") },
  379.  
  380.             // The F1 key.
  381.             { new KeyValuePair<Keys, string>(Keys.F1, "f1") },
  382.  
  383.             // The F2 key.
  384.             { new KeyValuePair<Keys, string>(Keys.F2, "f2") },
  385.  
  386.             // The F3 key.
  387.             { new KeyValuePair<Keys, string>(Keys.F3, "f3") },
  388.  
  389.             // The F4 key.
  390.             { new KeyValuePair<Keys, string>(Keys.F4, "f4") },
  391.  
  392.             // The F5 key.
  393.             { new KeyValuePair<Keys, string>(Keys.F5, "f5") },
  394.  
  395.             // The F6 key.
  396.             { new KeyValuePair<Keys, string>(Keys.F6, "f6") },
  397.  
  398.             // The F7 key.
  399.             { new KeyValuePair<Keys, string>(Keys.F7, "f7") },
  400.  
  401.             // The F8 key.
  402.             { new KeyValuePair<Keys, string>(Keys.F8, "f8") },
  403.  
  404.             // The F9 key.
  405.             { new KeyValuePair<Keys, string>(Keys.F9, "f9") },
  406.  
  407.             // The F10 key.
  408.             { new KeyValuePair<Keys, string>(Keys.F10, "f10") },
  409.  
  410.             // The F11 key.
  411.             { new KeyValuePair<Keys, string>(Keys.F11, "f11") },
  412.  
  413.             // The F12 key.
  414.             { new KeyValuePair<Keys, string>(Keys.F12, "f12") },
  415.  
  416.             // The F13 key.
  417.             { new KeyValuePair<Keys, string>(Keys.F13, "f13") },
  418.  
  419.             // The F14 key.
  420.             { new KeyValuePair<Keys, string>(Keys.F14, "f14") },
  421.  
  422.             // The F15 key.
  423.             { new KeyValuePair<Keys, string>(Keys.F15, "f15") },
  424.  
  425.             // The F16 key.
  426.             { new KeyValuePair<Keys, string>(Keys.F16, "f16") },
  427.  
  428.             // The F17 key.
  429.             { new KeyValuePair<Keys, string>(Keys.F17, "f17") },
  430.  
  431.             // The F18 key.
  432.             { new KeyValuePair<Keys, string>(Keys.F18, "f18") },
  433.  
  434.             // The F19 key.
  435.             { new KeyValuePair<Keys, string>(Keys.F19, "f19") },
  436.  
  437.             // The F20 key.
  438.             { new KeyValuePair<Keys, string>(Keys.F20, "f20") },
  439.  
  440.             // The F21 key.
  441.             { new KeyValuePair<Keys, string>(Keys.F21, "f21") },
  442.  
  443.             // The F22 key.
  444.             { new KeyValuePair<Keys, string>(Keys.F22, "f22") },
  445.  
  446.             // The F23 key.
  447.             { new KeyValuePair<Keys, string>(Keys.F23, "f23") },
  448.  
  449.             // The F24 key.
  450.             { new KeyValuePair<Keys, string>(Keys.F24, "f24") },
  451.  
  452.             // The NUM LOCK key.
  453.             { new KeyValuePair<Keys, string>(Keys.NumLock, "numlock") },
  454.  
  455.             // The SCROLL LOCK key.
  456.             { new KeyValuePair<Keys, string>(Keys.Scroll, "scroll") },
  457.  
  458.             // The left SHIFT key.
  459.             { new KeyValuePair<Keys, string>(Keys.LShiftKey, "lshiftkey") },
  460.  
  461.             // The right SHIFT key.
  462.             { new KeyValuePair<Keys, string>(Keys.RShiftKey, "rshiftkey") },
  463.  
  464.             // The left CTRL key.
  465.             { new KeyValuePair<Keys, string>(Keys.LControlKey, "lcontrolkey") },
  466.  
  467.             // The right CTRL key.
  468.             { new KeyValuePair<Keys, string>(Keys.RControlKey, "rcontrolkey") },
  469.  
  470.             // The left ALT key.
  471.             { new KeyValuePair<Keys, string>(Keys.LMenu, "lmenu") },
  472.  
  473.             // The right ALT key.
  474.             { new KeyValuePair<Keys, string>(Keys.RMenu, "rmenu") },
  475.  
  476.             // The browser back key (Windows 2000 or later).
  477.             { new KeyValuePair<Keys, string>(Keys.BrowserBack, "browserback") },
  478.  
  479.             // The browser forward key (Windows 2000 or later).
  480.             { new KeyValuePair<Keys, string>(Keys.BrowserForward, "browserforward") },
  481.  
  482.             // The browser refresh key (Windows 2000 or later).
  483.             { new KeyValuePair<Keys, string>(Keys.BrowserRefresh, "browserrefresh") },
  484.  
  485.             // The browser stop key (Windows 2000 or later).
  486.             { new KeyValuePair<Keys, string>(Keys.BrowserStop, "browserstop") },
  487.  
  488.             // The browser search key (Windows 2000 or later).
  489.             { new KeyValuePair<Keys, string>(Keys.BrowserSearch, "browsersearch") },
  490.  
  491.             // The browser favorites key (Windows 2000 or later).
  492.             { new KeyValuePair<Keys, string>(Keys.BrowserFavorites, "browserfavorites") },
  493.  
  494.             // The browser home key (Windows 2000 or later).
  495.             { new KeyValuePair<Keys, string>(Keys.BrowserHome, "browserhome") },
  496.  
  497.             // The volume mute key (Windows 2000 or later).
  498.             { new KeyValuePair<Keys, string>(Keys.VolumeMute, "volumemute") },
  499.  
  500.             // The volume down key (Windows 2000 or later).
  501.             { new KeyValuePair<Keys, string>(Keys.VolumeDown, "volumedown") },
  502.  
  503.             // The volume up key (Windows 2000 or later).
  504.             { new KeyValuePair<Keys, string>(Keys.VolumeUp, "volumeup") },
  505.  
  506.             // The media next track key (Windows 2000 or later).
  507.             { new KeyValuePair<Keys, string>(Keys.MediaNextTrack, "medianexttrack") },
  508.  
  509.             // The media previous track key (Windows 2000 or later).
  510.             { new KeyValuePair<Keys, string>(Keys.MediaPreviousTrack, "mediaprevioustrack") },
  511.  
  512.             // The media Stop key (Windows 2000 or later).
  513.             { new KeyValuePair<Keys, string>(Keys.MediaStop, "mediastop") },
  514.  
  515.             // The media play pause key (Windows 2000 or later).
  516.             { new KeyValuePair<Keys, string>(Keys.MediaPlayPause, "mediaplaypause") },
  517.  
  518.             // The launch mail key (Windows 2000 or later).
  519.             { new KeyValuePair<Keys, string>(Keys.LaunchMail, "launchmail") },
  520.  
  521.             // The select media key (Windows 2000 or later).
  522.             { new KeyValuePair<Keys, string>(Keys.SelectMedia, "selectmedia") },
  523.  
  524.             // The start application one key (Windows 2000 or later).
  525.             { new KeyValuePair<Keys, string>(Keys.LaunchApplication1, "launchapplication1") },
  526.  
  527.             // The start application two key (Windows 2000 or later).
  528.             { new KeyValuePair<Keys, string>(Keys.LaunchApplication2, "launchapplication2") },
  529.  
  530.             // The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
  531.             { new KeyValuePair<Keys, string>(Keys.OemSemicolon, "oemsemicolon") },
  532.  
  533.             // The OEM 1 key.
  534.             { new KeyValuePair<Keys, string>(Keys.Oem1, "oem1") },
  535.  
  536.             // The OEM plus key on any country/region keyboard (Windows 2000 or later).
  537.             { new KeyValuePair<Keys, string>(Keys.Oemplus, "oemplus") },
  538.  
  539.             // The OEM comma key on any country/region keyboard (Windows 2000 or later).
  540.             { new KeyValuePair<Keys, string>(Keys.Oemcomma, "oemcomma") },
  541.  
  542.             // The OEM minus key on any country/region keyboard (Windows 2000 or later).
  543.             { new KeyValuePair<Keys, string>(Keys.OemMinus, "oemminus") },
  544.  
  545.             // The OEM period key on any country/region keyboard (Windows 2000 or later).
  546.             { new KeyValuePair<Keys, string>(Keys.OemPeriod, "oemperiod") },
  547.  
  548.             // The OEM question mark key on a US standard keyboard (Windows 2000 or later).
  549.             { new KeyValuePair<Keys, string>(Keys.OemQuestion, "oemquestion") },
  550.  
  551.             // The OEM 2 key.
  552.             { new KeyValuePair<Keys, string>(Keys.Oem2, "oem2") },
  553.  
  554.             // The OEM tilde key on a US standard keyboard (Windows 2000 or later).
  555.             { new KeyValuePair<Keys, string>(Keys.Oemtilde, "oemtilde") },
  556.  
  557.             // The OEM 3 key.
  558.             { new KeyValuePair<Keys, string>(Keys.Oem3, "oem3") },
  559.  
  560.             // The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
  561.             { new KeyValuePair<Keys, string>(Keys.OemOpenBrackets, "oemopenbrackets") },
  562.  
  563.             // The OEM 4 key.
  564.             { new KeyValuePair<Keys, string>(Keys.Oem4, "oem4") },
  565.  
  566.             // The OEM pipe key on a US standard keyboard (Windows 2000 or later).
  567.             { new KeyValuePair<Keys, string>(Keys.OemPipe, "oempipe") },
  568.  
  569.             // The OEM 5 key.
  570.             { new KeyValuePair<Keys, string>(Keys.Oem5, "oem5") },
  571.  
  572.             // The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
  573.             { new KeyValuePair<Keys, string>(Keys.OemCloseBrackets, "oemclosebrackets") },
  574.  
  575.             // The OEM 6 key.
  576.             { new KeyValuePair<Keys, string>(Keys.Oem6, "oem6") },
  577.  
  578.             // The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later).
  579.             { new KeyValuePair<Keys, string>(Keys.OemQuotes, "oemquotes") },
  580.  
  581.             // The OEM 7 key.
  582.             { new KeyValuePair<Keys, string>(Keys.Oem7, "oem7") },
  583.  
  584.             // The OEM 8 key.
  585.             { new KeyValuePair<Keys, string>(Keys.Oem8, "oem8") },
  586.  
  587.             // The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000
  588.             //     or later).
  589.             { new KeyValuePair<Keys, string>(Keys.OemBackslash, "oembackslash") },
  590.  
  591.             // The OEM 102 key.
  592.             { new KeyValuePair<Keys, string>(Keys.Oem102, "oem102") },
  593.  
  594.             // The PROCESS KEY key.
  595.             { new KeyValuePair<Keys, string>(Keys.ProcessKey, "processkey") },
  596.  
  597.             // Used to pass Unicode characters as if they were keystrokes. The Packet key value
  598.             //     is the low word of a 32-bit virtual-key value used for non-keyboard input methods.
  599.             { new KeyValuePair<Keys, string>(Keys.Packet, "packet") },
  600.  
  601.             // The ATTN key.
  602.             { new KeyValuePair<Keys, string>(Keys.Attn, "attn") },
  603.  
  604.             // The CRSEL key.
  605.             { new KeyValuePair<Keys, string>(Keys.Crsel, "crsel") },
  606.  
  607.             // The EXSEL key.
  608.             { new KeyValuePair<Keys, string>(Keys.Exsel, "exsel") },
  609.  
  610.             // The ERASE EOF key.
  611.             { new KeyValuePair<Keys, string>(Keys.EraseEof, "eraseeof") },
  612.  
  613.             // The PLAY key.
  614.             { new KeyValuePair<Keys, string>(Keys.Play, "play") },
  615.  
  616.             // The ZOOM key.
  617.             { new KeyValuePair<Keys, string>(Keys.Zoom, "zoom") },
  618.  
  619.             // A constant reserved for future use.
  620.             { new KeyValuePair<Keys, string>(Keys.NoName, "noname") },
  621.  
  622.             // The PA1 key.
  623.             { new KeyValuePair<Keys, string>(Keys.Pa1, "pa1") },
  624.  
  625.             // The CLEAR key.
  626.             { new KeyValuePair<Keys, string>(Keys.OemClear, "oemclear") }
  627.         };
  628.  
  629.  
  630.         private static List<KeyValuePair<string, Keys>> keyStringsMap = new List<KeyValuePair<string, Keys>>()
  631.         {
  632.             // The left mouse button.
  633.             { new KeyValuePair<string, Keys>("lbutton", Keys.LButton) },
  634.  
  635.             // The right mouse button.
  636.             { new KeyValuePair<string, Keys>("rbutton", Keys.RButton) },
  637.  
  638.             // The CANCEL key.
  639.             { new KeyValuePair<string, Keys>("cancel", Keys.Cancel) },
  640.  
  641.             // The middle mouse button (three-button mouse).
  642.             { new KeyValuePair<string, Keys>("mbutton", Keys.MButton) },
  643.  
  644.             // The first x mouse button (five-button mouse).
  645.             { new KeyValuePair<string, Keys>("xbutton1", Keys.XButton1) },
  646.  
  647.             // The second x mouse button (five-button mouse).
  648.             { new KeyValuePair<string, Keys>("xbutton2", Keys.XButton2) },
  649.  
  650.             // The BACKSPACE key.
  651.             { new KeyValuePair<string, Keys>("back", Keys.Back) },
  652.  
  653.             // The TAB key.
  654.             { new KeyValuePair<string, Keys>("tab", Keys.Tab) },
  655.  
  656.             // The LINEFEED key.
  657.             { new KeyValuePair<string, Keys>("linefeed", Keys.LineFeed) },
  658.  
  659.             // The CLEAR key.
  660.             { new KeyValuePair<string, Keys>("clear", Keys.Clear) },
  661.  
  662.             // The RETURN key.
  663.             { new KeyValuePair<string, Keys>("return", Keys.Return) },
  664.  
  665.             // The ENTER key.
  666.             { new KeyValuePair<string, Keys>("enter", Keys.Enter) },
  667.  
  668.             // The SHIFT key.
  669.             { new KeyValuePair<string, Keys>("shiftkey", Keys.ShiftKey) },
  670.  
  671.             // The CTRL key.
  672.             { new KeyValuePair<string, Keys>("controlkey", Keys.ControlKey) },
  673.  
  674.             // The ALT key.
  675.             { new KeyValuePair<string, Keys>("menu", Keys.Menu) },
  676.  
  677.             // The PAUSE key.
  678.             { new KeyValuePair<string, Keys>("pause", Keys.Pause) },
  679.  
  680.             // The CAPS LOCK key.
  681.             { new KeyValuePair<string, Keys>("capital", Keys.Capital) },
  682.  
  683.             // The CAPS LOCK key.
  684.             { new KeyValuePair<string, Keys>("capslock", Keys.CapsLock) },
  685.  
  686.             // The IME Kana mode key.
  687.             { new KeyValuePair<string, Keys>("kanamode", Keys.KanaMode) },
  688.  
  689.             // The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
  690.             { new KeyValuePair<string, Keys>("hanguelmode", Keys.HanguelMode) },
  691.  
  692.             // The IME Hangul mode key.
  693.             { new KeyValuePair<string, Keys>("hangulmode", Keys.HangulMode) },
  694.  
  695.             // The IME Junja mode key.
  696.             { new KeyValuePair<string, Keys>("junjamode", Keys.JunjaMode) },
  697.  
  698.             // The IME final mode key.
  699.             { new KeyValuePair<string, Keys>("finalmode", Keys.FinalMode) },
  700.  
  701.             // The IME Hanja mode key.
  702.             { new KeyValuePair<string, Keys>("hanjamode", Keys.HanjaMode) },
  703.  
  704.             // The IME Kanji mode key.
  705.             { new KeyValuePair<string, Keys>("kanjimode", Keys.KanjiMode) },
  706.  
  707.             // The ESC key.
  708.             { new KeyValuePair<string, Keys>("escape", Keys.Escape) },
  709.  
  710.             // The IME convert key.
  711.             { new KeyValuePair<string, Keys>("imeconvert", Keys.IMEConvert) },
  712.  
  713.             // The IME nonconvert key.
  714.             { new KeyValuePair<string, Keys>("imenonconvert", Keys.IMENonconvert) },
  715.  
  716.             // The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
  717.             { new KeyValuePair<string, Keys>("imeaccept", Keys.IMEAccept) },
  718.  
  719.             // The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
  720.             { new KeyValuePair<string, Keys>("imeaceept", Keys.IMEAceept) },
  721.  
  722.             // The IME mode change key.
  723.             { new KeyValuePair<string, Keys>("imemodechange", Keys.IMEModeChange) },
  724.  
  725.             // The SPACEBAR key.
  726.             { new KeyValuePair<string, Keys>("space", Keys.Space) },
  727.  
  728.             // The PAGE UP key.
  729.             { new KeyValuePair<string, Keys>("prior", Keys.Prior) },
  730.  
  731.             // The PAGE UP key.
  732.             { new KeyValuePair<string, Keys>("pageup", Keys.PageUp) },
  733.  
  734.             // The PAGE DOWN key.
  735.             { new KeyValuePair<string, Keys>("next", Keys.Next) },
  736.  
  737.             // The PAGE DOWN key.
  738.             { new KeyValuePair<string, Keys>("pagedown", Keys.PageDown) },
  739.  
  740.             // The END key.
  741.             { new KeyValuePair<string, Keys>("end", Keys.End) },
  742.  
  743.             // The HOME key.
  744.             { new KeyValuePair<string, Keys>("home", Keys.Home) },
  745.  
  746.             // The LEFT ARROW key.
  747.             { new KeyValuePair<string, Keys>("left", Keys.Left) },
  748.  
  749.             // The UP ARROW key.
  750.             { new KeyValuePair<string, Keys>("up", Keys.Up) },
  751.  
  752.             // The RIGHT ARROW key.
  753.             { new KeyValuePair<string, Keys>("right", Keys.Right) },
  754.  
  755.             // The DOWN ARROW key.
  756.             { new KeyValuePair<string, Keys>("down", Keys.Down) },
  757.  
  758.             // The SELECT key.
  759.             { new KeyValuePair<string, Keys>("select", Keys.Select) },
  760.  
  761.             // The PRINT key.
  762.             { new KeyValuePair<string, Keys>("print", Keys.Print) },
  763.  
  764.             // The EXECUTE key.
  765.             { new KeyValuePair<string, Keys>("execute", Keys.Execute) },
  766.  
  767.             // The PRINT SCREEN key.
  768.             { new KeyValuePair<string, Keys>("snapshot", Keys.Snapshot) },
  769.  
  770.             // The PRINT SCREEN key.
  771.             { new KeyValuePair<string, Keys>("printscreen", Keys.PrintScreen) },
  772.  
  773.             // The INS key.
  774.             { new KeyValuePair<string, Keys>("insert", Keys.Insert) },
  775.  
  776.             // The DEL key.
  777.             { new KeyValuePair<string, Keys>("delete", Keys.Delete) },
  778.  
  779.             // The HELP key.
  780.             { new KeyValuePair<string, Keys>("help", Keys.Help) },
  781.  
  782.             // The 0 key.
  783.             { new KeyValuePair<string, Keys>("d0", Keys.D0) },
  784.  
  785.             // The 1 key.
  786.             { new KeyValuePair<string, Keys>("d1", Keys.D1) },
  787.  
  788.             // The 2 key.
  789.             { new KeyValuePair<string, Keys>("d2", Keys.D2) },
  790.  
  791.             // The 3 key.
  792.             { new KeyValuePair<string, Keys>("d3", Keys.D3) },
  793.  
  794.             // The 4 key.
  795.             { new KeyValuePair<string, Keys>("d4", Keys.D4) },
  796.  
  797.             // The 5 key.
  798.             { new KeyValuePair<string, Keys>("d5", Keys.D5) },
  799.  
  800.             // The 6 key.
  801.             { new KeyValuePair<string, Keys>("d6", Keys.D6) },
  802.  
  803.             // The 7 key.
  804.             { new KeyValuePair<string, Keys>("d7", Keys.D7) },
  805.  
  806.             // The 8 key.
  807.             { new KeyValuePair<string, Keys>("d8", Keys.D8) },
  808.  
  809.             // The 9 key.
  810.             { new KeyValuePair<string, Keys>("d9", Keys.D9) },
  811.  
  812.             // The A key.
  813.             { new KeyValuePair<string, Keys>("a", Keys.A) },
  814.  
  815.             // The B key.
  816.             { new KeyValuePair<string, Keys>("b", Keys.B) },
  817.  
  818.             // The C key.
  819.             { new KeyValuePair<string, Keys>("c", Keys.C) },
  820.  
  821.             // The D key.
  822.             { new KeyValuePair<string, Keys>("d", Keys.D) },
  823.  
  824.             // The E key.
  825.             { new KeyValuePair<string, Keys>("e", Keys.E) },
  826.  
  827.             // The F key.
  828.             { new KeyValuePair<string, Keys>("f", Keys.F) },
  829.  
  830.             // The G key.
  831.             { new KeyValuePair<string, Keys>("g", Keys.G) },
  832.  
  833.             // The H key.
  834.             { new KeyValuePair<string, Keys>("h", Keys.H) },
  835.  
  836.             // The I key.
  837.             { new KeyValuePair<string, Keys>("i", Keys.I) },
  838.  
  839.             // The J key.
  840.             { new KeyValuePair<string, Keys>("j", Keys.J) },
  841.  
  842.             // The K key.
  843.             { new KeyValuePair<string, Keys>("k", Keys.K) },
  844.  
  845.             // The L key.
  846.             { new KeyValuePair<string, Keys>("l", Keys.L) },
  847.  
  848.             // The M key.
  849.             { new KeyValuePair<string, Keys>("m", Keys.M) },
  850.  
  851.             // The N key.
  852.             { new KeyValuePair<string, Keys>("n", Keys.N) },
  853.  
  854.             // The O key.
  855.             { new KeyValuePair<string, Keys>("o", Keys.O) },
  856.  
  857.             // The P key.
  858.             { new KeyValuePair<string, Keys>("p", Keys.P) },
  859.  
  860.             // The Q key.
  861.             { new KeyValuePair<string, Keys>("q", Keys.Q) },
  862.  
  863.             // The R key.
  864.             { new KeyValuePair<string, Keys>("r", Keys.R) },
  865.  
  866.             // The S key.
  867.             { new KeyValuePair<string, Keys>("s", Keys.S) },
  868.  
  869.             // The T key.
  870.             { new KeyValuePair<string, Keys>("t", Keys.T) },
  871.  
  872.             // The U key.
  873.             { new KeyValuePair<string, Keys>("u", Keys.U) },
  874.  
  875.             // The V key.
  876.             { new KeyValuePair<string, Keys>("v", Keys.V) },
  877.  
  878.             // The W key.
  879.             { new KeyValuePair<string, Keys>("w", Keys.W) },
  880.  
  881.             // The X key.
  882.             { new KeyValuePair<string, Keys>("x", Keys.X) },
  883.  
  884.             // The Y key.
  885.             { new KeyValuePair<string, Keys>("y", Keys.Y) },
  886.  
  887.             // The Z key.
  888.             { new KeyValuePair<string, Keys>("z", Keys.Z) },
  889.  
  890.             // The left Windows logo key (Microsoft Natural Keyboard).
  891.             { new KeyValuePair<string, Keys>("lwin", Keys.LWin) },
  892.  
  893.             // The right Windows logo key (Microsoft Natural Keyboard).
  894.             { new KeyValuePair<string, Keys>("rwin", Keys.RWin) },
  895.  
  896.             // The application key (Microsoft Natural Keyboard).
  897.             { new KeyValuePair<string, Keys>("apps", Keys.Apps) },
  898.  
  899.             // The computer sleep key.
  900.             { new KeyValuePair<string, Keys>("sleep", Keys.Sleep) },
  901.  
  902.             // The 0 key on the numeric keypad.
  903.             { new KeyValuePair<string, Keys>("numpad0", Keys.NumPad0) },
  904.  
  905.             // The 1 key on the numeric keypad.
  906.             { new KeyValuePair<string, Keys>("numpad1", Keys.NumPad1) },
  907.  
  908.             // The 2 key on the numeric keypad.
  909.             { new KeyValuePair<string, Keys>("numpad2", Keys.NumPad2) },
  910.  
  911.             // The 3 key on the numeric keypad.
  912.             { new KeyValuePair<string, Keys>("numpad3", Keys.NumPad3) },
  913.  
  914.             // The 4 key on the numeric keypad.
  915.             { new KeyValuePair<string, Keys>("numpad4", Keys.NumPad4) },
  916.  
  917.             // The 5 key on the numeric keypad.
  918.             { new KeyValuePair<string, Keys>("numpad5", Keys.NumPad5) },
  919.  
  920.             // The 6 key on the numeric keypad.
  921.             { new KeyValuePair<string, Keys>("numpad6", Keys.NumPad6) },
  922.  
  923.             // The 7 key on the numeric keypad.
  924.             { new KeyValuePair<string, Keys>("numpad7", Keys.NumPad7) },
  925.  
  926.             // The 8 key on the numeric keypad.
  927.             { new KeyValuePair<string, Keys>("numpad8", Keys.NumPad8) },
  928.  
  929.             // The 9 key on the numeric keypad.
  930.             { new KeyValuePair<string, Keys>("numpad9", Keys.NumPad9) },
  931.  
  932.             // The multiply key.
  933.             { new KeyValuePair<string, Keys>("multiply", Keys.Multiply) },
  934.  
  935.             // The add key.
  936.             { new KeyValuePair<string, Keys>("add", Keys.Add) },
  937.  
  938.             // The separator key.
  939.             { new KeyValuePair<string, Keys>("separator", Keys.Separator) },
  940.  
  941.             // The subtract key.
  942.             { new KeyValuePair<string, Keys>("subtract", Keys.Subtract) },
  943.  
  944.             // The decimal key.
  945.             { new KeyValuePair<string, Keys>("decimal", Keys.Decimal) },
  946.  
  947.             // The divide key.
  948.             { new KeyValuePair<string, Keys>("divide", Keys.Divide) },
  949.  
  950.             // The F1 key.
  951.             { new KeyValuePair<string, Keys>("f1", Keys.F1) },
  952.  
  953.             // The F2 key.
  954.             { new KeyValuePair<string, Keys>("f2", Keys.F2) },
  955.  
  956.             // The F3 key.
  957.             { new KeyValuePair<string, Keys>("f3", Keys.F3) },
  958.  
  959.             // The F4 key.
  960.             { new KeyValuePair<string, Keys>("f4", Keys.F4) },
  961.  
  962.             // The F5 key.
  963.             { new KeyValuePair<string, Keys>("f5", Keys.F5) },
  964.  
  965.             // The F6 key.
  966.             { new KeyValuePair<string, Keys>("f6", Keys.F6) },
  967.  
  968.             // The F7 key.
  969.             { new KeyValuePair<string, Keys>("f7", Keys.F7) },
  970.  
  971.             // The F8 key.
  972.             { new KeyValuePair<string, Keys>("f8", Keys.F8) },
  973.  
  974.             // The F9 key.
  975.             { new KeyValuePair<string, Keys>("f9", Keys.F9) },
  976.  
  977.             // The F10 key.
  978.             { new KeyValuePair<string, Keys>("f10", Keys.F10) },
  979.  
  980.             // The F11 key.
  981.             { new KeyValuePair<string, Keys>("f11", Keys.F11) },
  982.  
  983.             // The F12 key.
  984.             { new KeyValuePair<string, Keys>("f12", Keys.F12) },
  985.  
  986.             // The F13 key.
  987.             { new KeyValuePair<string, Keys>("f13", Keys.F13) },
  988.  
  989.             // The F14 key.
  990.             { new KeyValuePair<string, Keys>("f14", Keys.F14) },
  991.  
  992.             // The F15 key.
  993.             { new KeyValuePair<string, Keys>("f15", Keys.F15) },
  994.  
  995.             // The F16 key.
  996.             { new KeyValuePair<string, Keys>("f16", Keys.F16) },
  997.  
  998.             // The F17 key.
  999.             { new KeyValuePair<string, Keys>("f17", Keys.F17) },
  1000.  
  1001.             // The F18 key.
  1002.             { new KeyValuePair<string, Keys>("f18", Keys.F18) },
  1003.  
  1004.             // The F19 key.
  1005.             { new KeyValuePair<string, Keys>("f19", Keys.F19) },
  1006.  
  1007.             // The F20 key.
  1008.             { new KeyValuePair<string, Keys>("f20", Keys.F20) },
  1009.  
  1010.             // The F21 key.
  1011.             { new KeyValuePair<string, Keys>("f21", Keys.F21) },
  1012.  
  1013.             // The F22 key.
  1014.             { new KeyValuePair<string, Keys>("f22", Keys.F22) },
  1015.  
  1016.             // The F23 key.
  1017.             { new KeyValuePair<string, Keys>("f23", Keys.F23) },
  1018.  
  1019.             // The F24 key.
  1020.             { new KeyValuePair<string, Keys>("f24", Keys.F24) },
  1021.  
  1022.             // The NUM LOCK key.
  1023.             { new KeyValuePair<string, Keys>("numlock", Keys.NumLock) },
  1024.  
  1025.             // The SCROLL LOCK key.
  1026.             { new KeyValuePair<string, Keys>("scroll", Keys.Scroll) },
  1027.  
  1028.             // The left SHIFT key.
  1029.             { new KeyValuePair<string, Keys>("lshiftkey", Keys.LShiftKey) },
  1030.  
  1031.             // The right SHIFT key.
  1032.             { new KeyValuePair<string, Keys>("rshiftkey", Keys.RShiftKey) },
  1033.  
  1034.             // The left CTRL key.
  1035.             { new KeyValuePair<string, Keys>("lcontrolkey", Keys.LControlKey) },
  1036.  
  1037.             // The right CTRL key.
  1038.             { new KeyValuePair<string, Keys>("rcontrolkey", Keys.RControlKey) },
  1039.  
  1040.             // The left ALT key.
  1041.             { new KeyValuePair<string, Keys>("lmenu", Keys.LMenu) },
  1042.  
  1043.             // The right ALT key.
  1044.             { new KeyValuePair<string, Keys>("rmenu", Keys.RMenu) },
  1045.  
  1046.             // The browser back key (Windows 2000 or later).
  1047.             { new KeyValuePair<string, Keys>("browserback", Keys.BrowserBack) },
  1048.  
  1049.             // The browser forward key (Windows 2000 or later).
  1050.             { new KeyValuePair<string, Keys>("browserforward", Keys.BrowserForward) },
  1051.  
  1052.             // The browser refresh key (Windows 2000 or later).
  1053.             { new KeyValuePair<string, Keys>("browserrefresh", Keys.BrowserRefresh) },
  1054.  
  1055.             // The browser stop key (Windows 2000 or later).
  1056.             { new KeyValuePair<string, Keys>("browserstop", Keys.BrowserStop) },
  1057.  
  1058.             // The browser search key (Windows 2000 or later).
  1059.             { new KeyValuePair<string, Keys>("browsersearch", Keys.BrowserSearch) },
  1060.  
  1061.             // The browser favorites key (Windows 2000 or later).
  1062.             { new KeyValuePair<string, Keys>("browserfavorites", Keys.BrowserFavorites) },
  1063.  
  1064.             // The browser home key (Windows 2000 or later).
  1065.             { new KeyValuePair<string, Keys>("browserhome", Keys.BrowserHome) },
  1066.  
  1067.             // The volume mute key (Windows 2000 or later).
  1068.             { new KeyValuePair<string, Keys>("volumemute", Keys.VolumeMute) },
  1069.  
  1070.             // The volume down key (Windows 2000 or later).
  1071.             { new KeyValuePair<string, Keys>("volumedown", Keys.VolumeDown) },
  1072.  
  1073.             // The volume up key (Windows 2000 or later).
  1074.             { new KeyValuePair<string, Keys>("volumeup", Keys.VolumeUp) },
  1075.  
  1076.             // The media next track key (Windows 2000 or later).
  1077.             { new KeyValuePair<string, Keys>("medianexttrack", Keys.MediaNextTrack) },
  1078.  
  1079.             // The media previous track key (Windows 2000 or later).
  1080.             { new KeyValuePair<string, Keys>("mediaprevioustrack", Keys.MediaPreviousTrack) },
  1081.  
  1082.             // The media Stop key (Windows 2000 or later).
  1083.             { new KeyValuePair<string, Keys>("mediastop", Keys.MediaStop) },
  1084.  
  1085.             // The media play pause key (Windows 2000 or later).
  1086.             { new KeyValuePair<string, Keys>("mediaplaypause", Keys.MediaPlayPause) },
  1087.  
  1088.             // The launch mail key (Windows 2000 or later).
  1089.             { new KeyValuePair<string, Keys>("launchmail", Keys.LaunchMail) },
  1090.  
  1091.             // The select media key (Windows 2000 or later).
  1092.             { new KeyValuePair<string, Keys>("selectmedia", Keys.SelectMedia) },
  1093.  
  1094.             // The start application one key (Windows 2000 or later).
  1095.             { new KeyValuePair<string, Keys>("launchapplication1", Keys.LaunchApplication1) },
  1096.  
  1097.             // The start application two key (Windows 2000 or later).
  1098.             { new KeyValuePair<string, Keys>("launchapplication2", Keys.LaunchApplication2) },
  1099.  
  1100.             // The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
  1101.             { new KeyValuePair<string, Keys>("oemsemicolon", Keys.OemSemicolon) },
  1102.  
  1103.             // The OEM 1 key.
  1104.             { new KeyValuePair<string, Keys>("oem1", Keys.Oem1) },
  1105.  
  1106.             // The OEM plus key on any country/region keyboard (Windows 2000 or later).
  1107.             { new KeyValuePair<string, Keys>("oemplus", Keys.Oemplus) },
  1108.  
  1109.             // The OEM comma key on any country/region keyboard (Windows 2000 or later).
  1110.             { new KeyValuePair<string, Keys>("oemcomma", Keys.Oemcomma) },
  1111.  
  1112.             // The OEM minus key on any country/region keyboard (Windows 2000 or later).
  1113.             { new KeyValuePair<string, Keys>("oemminus", Keys.OemMinus) },
  1114.  
  1115.             // The OEM period key on any country/region keyboard (Windows 2000 or later).
  1116.             { new KeyValuePair<string, Keys>("oemperiod", Keys.OemPeriod) },
  1117.  
  1118.             // The OEM question mark key on a US standard keyboard (Windows 2000 or later).
  1119.             { new KeyValuePair<string, Keys>("oemquestion", Keys.OemQuestion) },
  1120.  
  1121.             // The OEM 2 key.
  1122.             { new KeyValuePair<string, Keys>("oem2", Keys.Oem2) },
  1123.  
  1124.             // The OEM tilde key on a US standard keyboard (Windows 2000 or later).
  1125.             { new KeyValuePair<string, Keys>("oemtilde", Keys.Oemtilde) },
  1126.  
  1127.             // The OEM 3 key.
  1128.             { new KeyValuePair<string, Keys>("oem3", Keys.Oem3) },
  1129.  
  1130.             // The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
  1131.             { new KeyValuePair<string, Keys>("oemopenbrackets", Keys.OemOpenBrackets) },
  1132.  
  1133.             // The OEM 4 key.
  1134.             { new KeyValuePair<string, Keys>("oem4", Keys.Oem4) },
  1135.  
  1136.             // The OEM pipe key on a US standard keyboard (Windows 2000 or later).
  1137.             { new KeyValuePair<string, Keys>("oempipe", Keys.OemPipe) },
  1138.  
  1139.             // The OEM 5 key.
  1140.             { new KeyValuePair<string, Keys>("oem5", Keys.Oem5) },
  1141.  
  1142.             // The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
  1143.             { new KeyValuePair<string, Keys>("oemclosebrackets", Keys.OemCloseBrackets) },
  1144.  
  1145.             // The OEM 6 key.
  1146.             { new KeyValuePair<string, Keys>("oem6", Keys.Oem6) },
  1147.  
  1148.             // The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later).
  1149.             { new KeyValuePair<string, Keys>("oemquotes", Keys.OemQuotes) },
  1150.  
  1151.             // The OEM 7 key.
  1152.             { new KeyValuePair<string, Keys>("oem7", Keys.Oem7) },
  1153.  
  1154.             // The OEM 8 key.
  1155.             { new KeyValuePair<string, Keys>("oem8", Keys.Oem8) },
  1156.  
  1157.             // The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000
  1158.             //     or later).
  1159.             { new KeyValuePair<string, Keys>("oembackslash", Keys.OemBackslash) },
  1160.  
  1161.             // The OEM 102 key.
  1162.             { new KeyValuePair<string, Keys>("oem102", Keys.Oem102) },
  1163.  
  1164.             // The PROCESS KEY key.
  1165.             { new KeyValuePair<string, Keys>("processkey", Keys.ProcessKey) },
  1166.  
  1167.             // Used to pass Unicode characters as if they were keystrokes. The Packet key value
  1168.             //     is the low word of a 32-bit virtual-key value used for non-keyboard input methods.
  1169.             { new KeyValuePair<string, Keys>("packet", Keys.Packet) },
  1170.  
  1171.             // The ATTN key.
  1172.             { new KeyValuePair<string, Keys>("attn", Keys.Attn) },
  1173.  
  1174.             // The CRSEL key.
  1175.             { new KeyValuePair<string, Keys>("crsel", Keys.Crsel) },
  1176.  
  1177.             // The EXSEL key.
  1178.             { new KeyValuePair<string, Keys>("exsel", Keys.Exsel) },
  1179.  
  1180.             // The ERASE EOF key.
  1181.             { new KeyValuePair<string, Keys>("eraseeof", Keys.EraseEof) },
  1182.  
  1183.             // The PLAY key.
  1184.             { new KeyValuePair<string, Keys>("play", Keys.Play) },
  1185.  
  1186.             // The ZOOM key.
  1187.             { new KeyValuePair<string, Keys>("zoom", Keys.Zoom) },
  1188.  
  1189.             // A constant reserved for future use.
  1190.             { new KeyValuePair<string, Keys>("noname", Keys.NoName) },
  1191.  
  1192.             // The PA1 key.
  1193.             { new KeyValuePair<string, Keys>("pa1", Keys.Pa1) },
  1194.  
  1195.             // The CLEAR key.
  1196.             { new KeyValuePair<string, Keys>("oemclear", Keys.OemClear) }
  1197.         };
  1198.     }
  1199. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement