c# VirtualKeys
1 /// <summary> 2 /// Enumeration for virtual keys taken from http://www.pinvoke.net/default.aspx/Enums/VirtualKeys.html 3 /// </summary> 4 public enum VirtualKeys : ushort 5 { 6 /// <summary></summary> 7 LeftButton = 0x01, 8 /// <summary></summary> 9 RightButton = 0x02, 10 /// <summary></summary> 11 Cancel = 0x03, 12 /// <summary></summary> 13 MiddleButton = 0x04, 14 /// <summary></summary> 15 ExtraButton1 = 0x05, 16 /// <summary></summary> 17 ExtraButton2 = 0x06, 18 /// <summary></summary> 19 Back = 0x08, 20 /// <summary></summary> 21 Tab = 0x09, 22 /// <summary></summary> 23 Clear = 0x0C, 24 /// <summary></summary> 25 Return = 0x0D, 26 /// <summary></summary> 27 Shift = 0x10, 28 /// <summary></summary> 29 Control = 0x11, 30 /// <summary></summary> 31 Menu = 0x12, 32 /// <summary></summary> 33 Pause = 0x13, 34 /// <summary></summary> 35 CapsLock = 0x14, 36 /// <summary></summary> 37 Kana = 0x15, 38 /// <summary></summary> 39 Hangeul = 0x15, 40 /// <summary></summary> 41 Hangul = 0x15, 42 /// <summary></summary> 43 Junja = 0x17, 44 /// <summary></summary> 45 Final = 0x18, 46 /// <summary></summary> 47 Hanja = 0x19, 48 /// <summary></summary> 49 Kanji = 0x19, 50 /// <summary></summary> 51 Escape = 0x1B, 52 /// <summary></summary> 53 Convert = 0x1C, 54 /// <summary></summary> 55 NonConvert = 0x1D, 56 /// <summary></summary> 57 Accept = 0x1E, 58 /// <summary></summary> 59 ModeChange = 0x1F, 60 /// <summary></summary> 61 Space = 0x20, 62 /// <summary></summary> 63 Prior = 0x21, 64 /// <summary></summary> 65 Next = 0x22, 66 /// <summary></summary> 67 End = 0x23, 68 /// <summary></summary> 69 Home = 0x24, 70 /// <summary></summary> 71 Left = 0x25, 72 /// <summary></summary> 73 Up = 0x26, 74 /// <summary></summary> 75 Right = 0x27, 76 /// <summary></summary> 77 Down = 0x28, 78 /// <summary></summary> 79 Select = 0x29, 80 /// <summary></summary> 81 Print = 0x2A, 82 /// <summary></summary> 83 Execute = 0x2B, 84 /// <summary></summary> 85 Snapshot = 0x2C, 86 /// <summary></summary> 87 Insert = 0x2D, 88 /// <summary></summary> 89 Delete = 0x2E, 90 /// <summary></summary> 91 Help = 0x2F, 92 /// <summary></summary> 93 N0 = 0x30, 94 /// <summary></summary> 95 N1 = 0x31, 96 /// <summary></summary> 97 N2 = 0x32, 98 /// <summary></summary> 99 N3 = 0x33, 100 /// <summary></summary> 101 N4 = 0x34, 102 /// <summary></summary> 103 N5 = 0x35, 104 /// <summary></summary> 105 N6 = 0x36, 106 /// <summary></summary> 107 N7 = 0x37, 108 /// <summary></summary> 109 N8 = 0x38, 110 /// <summary></summary> 111 N9 = 0x39, 112 /// <summary></summary> 113 A = 0x41, 114 /// <summary></summary> 115 B = 0x42, 116 /// <summary></summary> 117 C = 0x43, 118 /// <summary></summary> 119 D = 0x44, 120 /// <summary></summary> 121 E = 0x45, 122 /// <summary></summary> 123 F = 0x46, 124 /// <summary></summary> 125 G = 0x47, 126 /// <summary></summary> 127 H = 0x48, 128 /// <summary></summary> 129 I = 0x49, 130 /// <summary></summary> 131 J = 0x4A, 132 /// <summary></summary> 133 K = 0x4B, 134 /// <summary></summary> 135 L = 0x4C, 136 /// <summary></summary> 137 M = 0x4D, 138 /// <summary></summary> 139 N = 0x4E, 140 /// <summary></summary> 141 O = 0x4F, 142 /// <summary></summary> 143 P = 0x50, 144 /// <summary></summary> 145 Q = 0x51, 146 /// <summary></summary> 147 R = 0x52, 148 /// <summary></summary> 149 S = 0x53, 150 /// <summary></summary> 151 T = 0x54, 152 /// <summary></summary> 153 U = 0x55, 154 /// <summary></summary> 155 V = 0x56, 156 /// <summary></summary> 157 W = 0x57, 158 /// <summary></summary> 159 X = 0x58, 160 /// <summary></summary> 161 Y = 0x59, 162 /// <summary></summary> 163 Z = 0x5A, 164 /// <summary></summary> 165 LeftWindows = 0x5B, 166 /// <summary></summary> 167 RightWindows = 0x5C, 168 /// <summary></summary> 169 Application = 0x5D, 170 /// <summary></summary> 171 Sleep = 0x5F, 172 /// <summary></summary> 173 Numpad0 = 0x60, 174 /// <summary></summary> 175 Numpad1 = 0x61, 176 /// <summary></summary> 177 Numpad2 = 0x62, 178 /// <summary></summary> 179 Numpad3 = 0x63, 180 /// <summary></summary> 181 Numpad4 = 0x64, 182 /// <summary></summary> 183 Numpad5 = 0x65, 184 /// <summary></summary> 185 Numpad6 = 0x66, 186 /// <summary></summary> 187 Numpad7 = 0x67, 188 /// <summary></summary> 189 Numpad8 = 0x68, 190 /// <summary></summary> 191 Numpad9 = 0x69, 192 /// <summary></summary> 193 Multiply = 0x6A, 194 /// <summary></summary> 195 Add = 0x6B, 196 /// <summary></summary> 197 Separator = 0x6C, 198 /// <summary></summary> 199 Subtract = 0x6D, 200 /// <summary></summary> 201 Decimal = 0x6E, 202 /// <summary></summary> 203 Divide = 0x6F, 204 /// <summary></summary> 205 F1 = 0x70, 206 /// <summary></summary> 207 F2 = 0x71, 208 /// <summary></summary> 209 F3 = 0x72, 210 /// <summary></summary> 211 F4 = 0x73, 212 /// <summary></summary> 213 F5 = 0x74, 214 /// <summary></summary> 215 F6 = 0x75, 216 /// <summary></summary> 217 F7 = 0x76, 218 /// <summary></summary> 219 F8 = 0x77, 220 /// <summary></summary> 221 F9 = 0x78, 222 /// <summary></summary> 223 F10 = 0x79, 224 /// <summary></summary> 225 F11 = 0x7A, 226 /// <summary></summary> 227 F12 = 0x7B, 228 /// <summary></summary> 229 F13 = 0x7C, 230 /// <summary></summary> 231 F14 = 0x7D, 232 /// <summary></summary> 233 F15 = 0x7E, 234 /// <summary></summary> 235 F16 = 0x7F, 236 /// <summary></summary> 237 F17 = 0x80, 238 /// <summary></summary> 239 F18 = 0x81, 240 /// <summary></summary> 241 F19 = 0x82, 242 /// <summary></summary> 243 F20 = 0x83, 244 /// <summary></summary> 245 F21 = 0x84, 246 /// <summary></summary> 247 F22 = 0x85, 248 /// <summary></summary> 249 F23 = 0x86, 250 /// <summary></summary> 251 F24 = 0x87, 252 /// <summary></summary> 253 NumLock = 0x90, 254 /// <summary></summary> 255 ScrollLock = 0x91, 256 /// <summary></summary> 257 NEC_Equal = 0x92, 258 /// <summary></summary> 259 Fujitsu_Jisho = 0x92, 260 /// <summary></summary> 261 Fujitsu_Masshou = 0x93, 262 /// <summary></summary> 263 Fujitsu_Touroku = 0x94, 264 /// <summary></summary> 265 Fujitsu_Loya = 0x95, 266 /// <summary></summary> 267 Fujitsu_Roya = 0x96, 268 /// <summary></summary> 269 LeftShift = 0xA0, 270 /// <summary></summary> 271 RightShift = 0xA1, 272 /// <summary></summary> 273 LeftControl = 0xA2, 274 /// <summary></summary> 275 RightControl = 0xA3, 276 /// <summary></summary> 277 LeftMenu = 0xA4, 278 /// <summary></summary> 279 RightMenu = 0xA5, 280 /// <summary></summary> 281 BrowserBack = 0xA6, 282 /// <summary></summary> 283 BrowserForward = 0xA7, 284 /// <summary></summary> 285 BrowserRefresh = 0xA8, 286 /// <summary></summary> 287 BrowserStop = 0xA9, 288 /// <summary></summary> 289 BrowserSearch = 0xAA, 290 /// <summary></summary> 291 BrowserFavorites = 0xAB, 292 /// <summary></summary> 293 BrowserHome = 0xAC, 294 /// <summary></summary> 295 VolumeMute = 0xAD, 296 /// <summary></summary> 297 VolumeDown = 0xAE, 298 /// <summary></summary> 299 VolumeUp = 0xAF, 300 /// <summary></summary> 301 MediaNextTrack = 0xB0, 302 /// <summary></summary> 303 MediaPrevTrack = 0xB1, 304 /// <summary></summary> 305 MediaStop = 0xB2, 306 /// <summary></summary> 307 MediaPlayPause = 0xB3, 308 /// <summary></summary> 309 LaunchMail = 0xB4, 310 /// <summary></summary> 311 LaunchMediaSelect = 0xB5, 312 /// <summary></summary> 313 LaunchApplication1 = 0xB6, 314 /// <summary></summary> 315 LaunchApplication2 = 0xB7, 316 /// <summary></summary> 317 OEM1 = 0xBA, 318 /// <summary></summary> 319 OEMPlus = 0xBB, 320 /// <summary></summary> 321 OEMComma = 0xBC, 322 /// <summary></summary> 323 OEMMinus = 0xBD, 324 /// <summary></summary> 325 OEMPeriod = 0xBE, 326 /// <summary></summary> 327 OEM2 = 0xBF, 328 /// <summary></summary> 329 OEM3 = 0xC0, 330 /// <summary></summary> 331 OEM4 = 0xDB, 332 /// <summary></summary> 333 OEM5 = 0xDC, 334 /// <summary></summary> 335 OEM6 = 0xDD, 336 /// <summary></summary> 337 OEM7 = 0xDE, 338 /// <summary></summary> 339 OEM8 = 0xDF, 340 /// <summary></summary> 341 OEMAX = 0xE1, 342 /// <summary></summary> 343 OEM102 = 0xE2, 344 /// <summary></summary> 345 ICOHelp = 0xE3, 346 /// <summary></summary> 347 ICO00 = 0xE4, 348 /// <summary></summary> 349 ProcessKey = 0xE5, 350 /// <summary></summary> 351 ICOClear = 0xE6, 352 /// <summary></summary> 353 Packet = 0xE7, 354 /// <summary></summary> 355 OEMReset = 0xE9, 356 /// <summary></summary> 357 OEMJump = 0xEA, 358 /// <summary></summary> 359 OEMPA1 = 0xEB, 360 /// <summary></summary> 361 OEMPA2 = 0xEC, 362 /// <summary></summary> 363 OEMPA3 = 0xED, 364 /// <summary></summary> 365 OEMWSCtrl = 0xEE, 366 /// <summary></summary> 367 OEMCUSel = 0xEF, 368 /// <summary></summary> 369 OEMATTN = 0xF0, 370 /// <summary></summary> 371 OEMFinish = 0xF1, 372 /// <summary></summary> 373 OEMCopy = 0xF2, 374 /// <summary></summary> 375 OEMAuto = 0xF3, 376 /// <summary></summary> 377 OEMENLW = 0xF4, 378 /// <summary></summary> 379 OEMBackTab = 0xF5, 380 /// <summary></summary> 381 ATTN = 0xF6, 382 /// <summary></summary> 383 CRSel = 0xF7, 384 /// <summary></summary> 385 EXSel = 0xF8, 386 /// <summary></summary> 387 EREOF = 0xF9, 388 /// <summary></summary> 389 Play = 0xFA, 390 /// <summary></summary> 391 Zoom = 0xFB, 392 /// <summary></summary> 393 Noname = 0xFC, 394 /// <summary></summary> 395 PA1 = 0xFD, 396 /// <summary></summary> 397 OEMClear = 0xFE 398 }