/// <summary>
/// Enumeration for virtual keys taken from http://www.pinvoke.net/default.aspx/Enums/VirtualKeys.html
/// </summary>
public enum VirtualKeys : ushort
{
/// <summary></summary>
LeftButton = 0x01,
/// <summary></summary>
RightButton = 0x02,
/// <summary></summary>
Cancel = 0x03,
/// <summary></summary>
MiddleButton = 0x04,
/// <summary></summary>
ExtraButton1 = 0x05,
/// <summary></summary>
ExtraButton2 = 0x06,
/// <summary></summary>
Back = 0x08,
/// <summary></summary>
Tab = 0x09,
/// <summary></summary>
Clear = 0x0C,
/// <summary></summary>
Return = 0x0D,
/// <summary></summary>
Shift = 0x10,
/// <summary></summary>
Control = 0x11,
/// <summary></summary>
Menu = 0x12,
/// <summary></summary>
Pause = 0x13,
/// <summary></summary>
CapsLock = 0x14,
/// <summary></summary>
Kana = 0x15,
/// <summary></summary>
Hangeul = 0x15,
/// <summary></summary>
Hangul = 0x15,
/// <summary></summary>
Junja = 0x17,
/// <summary></summary>
Final = 0x18,
/// <summary></summary>
Hanja = 0x19,
/// <summary></summary>
Kanji = 0x19,
/// <summary></summary>
Escape = 0x1B,
/// <summary></summary>
Convert = 0x1C,
/// <summary></summary>
NonConvert = 0x1D,
/// <summary></summary>
Accept = 0x1E,
/// <summary></summary>
ModeChange = 0x1F,
/// <summary></summary>
Space = 0x20,
/// <summary></summary>
Prior = 0x21,
/// <summary></summary>
Next = 0x22,
/// <summary></summary>
End = 0x23,
/// <summary></summary>
Home = 0x24,
/// <summary></summary>
Left = 0x25,
/// <summary></summary>
Up = 0x26,
/// <summary></summary>
Right = 0x27,
/// <summary></summary>
Down = 0x28,
/// <summary></summary>
Select = 0x29,
/// <summary></summary>
Print = 0x2A,
/// <summary></summary>
Execute = 0x2B,
/// <summary></summary>
Snapshot = 0x2C,
/// <summary></summary>
Insert = 0x2D,
/// <summary></summary>
Delete = 0x2E,
/// <summary></summary>
Help = 0x2F,
/// <summary></summary>
N0 = 0x30,
/// <summary></summary>
N1 = 0x31,
/// <summary></summary>
N2 = 0x32,
/// <summary></summary>
N3 = 0x33,
/// <summary></summary>
N4 = 0x34,
/// <summary></summary>
N5 = 0x35,
/// <summary></summary>
N6 = 0x36,
/// <summary></summary>
N7 = 0x37,
/// <summary></summary>
N8 = 0x38,
/// <summary></summary>
N9 = 0x39,
/// <summary></summary>
A = 0x41,
/// <summary></summary>
B = 0x42,
/// <summary></summary>
C = 0x43,
/// <summary></summary>
D = 0x44,
/// <summary></summary>
E = 0x45,
/// <summary></summary>
F = 0x46,
/// <summary></summary>
G = 0x47,
/// <summary></summary>
H = 0x48,
/// <summary></summary>
I = 0x49,
/// <summary></summary>
J = 0x4A,
/// <summary></summary>
K = 0x4B,
/// <summary></summary>
L = 0x4C,
/// <summary></summary>
M = 0x4D,
/// <summary></summary>
N = 0x4E,
/// <summary></summary>
O = 0x4F,
/// <summary></summary>
P = 0x50,
/// <summary></summary>
Q = 0x51,
/// <summary></summary>
R = 0x52,
/// <summary></summary>
S = 0x53,
/// <summary></summary>
T = 0x54,
/// <summary></summary>
U = 0x55,
/// <summary></summary>
V = 0x56,
/// <summary></summary>
W = 0x57,
/// <summary></summary>
X = 0x58,
/// <summary></summary>
Y = 0x59,
/// <summary></summary>
Z = 0x5A,
/// <summary></summary>
LeftWindows = 0x5B,
/// <summary></summary>
RightWindows = 0x5C,
/// <summary></summary>
Application = 0x5D,
/// <summary></summary>
Sleep = 0x5F,
/// <summary></summary>
Numpad0 = 0x60,
/// <summary></summary>
Numpad1 = 0x61,
/// <summary></summary>
Numpad2 = 0x62,
/// <summary></summary>
Numpad3 = 0x63,
/// <summary></summary>
Numpad4 = 0x64,
/// <summary></summary>
Numpad5 = 0x65,
/// <summary></summary>
Numpad6 = 0x66,
/// <summary></summary>
Numpad7 = 0x67,
/// <summary></summary>
Numpad8 = 0x68,
/// <summary></summary>
Numpad9 = 0x69,
/// <summary></summary>
Multiply = 0x6A,
/// <summary></summary>
Add = 0x6B,
/// <summary></summary>
Separator = 0x6C,
/// <summary></summary>
Subtract = 0x6D,
/// <summary></summary>
Decimal = 0x6E,
/// <summary></summary>
Divide = 0x6F,
/// <summary></summary>
F1 = 0x70,
/// <summary></summary>
F2 = 0x71,
/// <summary></summary>
F3 = 0x72,
/// <summary></summary>
F4 = 0x73,
/// <summary></summary>
F5 = 0x74,
/// <summary></summary>
F6 = 0x75,
/// <summary></summary>
F7 = 0x76,
/// <summary></summary>
F8 = 0x77,
/// <summary></summary>
F9 = 0x78,
/// <summary></summary>
F10 = 0x79,
/// <summary></summary>
F11 = 0x7A,
/// <summary></summary>
F12 = 0x7B,
/// <summary></summary>
F13 = 0x7C,
/// <summary></summary>
F14 = 0x7D,
/// <summary></summary>
F15 = 0x7E,
/// <summary></summary>
F16 = 0x7F,
/// <summary></summary>
F17 = 0x80,
/// <summary></summary>
F18 = 0x81,
/// <summary></summary>
F19 = 0x82,
/// <summary></summary>
F20 = 0x83,
/// <summary></summary>
F21 = 0x84,
/// <summary></summary>
F22 = 0x85,
/// <summary></summary>
F23 = 0x86,
/// <summary></summary>
F24 = 0x87,
/// <summary></summary>
NumLock = 0x90,
/// <summary></summary>
ScrollLock = 0x91,
/// <summary></summary>
NEC_Equal = 0x92,
/// <summary></summary>
Fujitsu_Jisho = 0x92,
/// <summary></summary>
Fujitsu_Masshou = 0x93,
/// <summary></summary>
Fujitsu_Touroku = 0x94,
/// <summary></summary>
Fujitsu_Loya = 0x95,
/// <summary></summary>
Fujitsu_Roya = 0x96,
/// <summary></summary>
LeftShift = 0xA0,
/// <summary></summary>
RightShift = 0xA1,
/// <summary></summary>
LeftControl = 0xA2,
/// <summary></summary>
RightControl = 0xA3,
/// <summary></summary>
LeftMenu = 0xA4,
/// <summary></summary>
RightMenu = 0xA5,
/// <summary></summary>
BrowserBack = 0xA6,
/// <summary></summary>
BrowserForward = 0xA7,
/// <summary></summary>
BrowserRefresh = 0xA8,
/// <summary></summary>
BrowserStop = 0xA9,
/// <summary></summary>
BrowserSearch = 0xAA,
/// <summary></summary>
BrowserFavorites = 0xAB,
/// <summary></summary>
BrowserHome = 0xAC,
/// <summary></summary>
VolumeMute = 0xAD,
/// <summary></summary>
VolumeDown = 0xAE,
/// <summary></summary>
VolumeUp = 0xAF,
/// <summary></summary>
MediaNextTrack = 0xB0,
/// <summary></summary>
MediaPrevTrack = 0xB1,
/// <summary></summary>
MediaStop = 0xB2,
/// <summary></summary>
MediaPlayPause = 0xB3,
/// <summary></summary>
LaunchMail = 0xB4,
/// <summary></summary>
LaunchMediaSelect = 0xB5,
/// <summary></summary>
LaunchApplication1 = 0xB6,
/// <summary></summary>
LaunchApplication2 = 0xB7,
/// <summary></summary>
OEM1 = 0xBA,
/// <summary></summary>
OEMPlus = 0xBB,
/// <summary></summary>
OEMComma = 0xBC,
/// <summary></summary>
OEMMinus = 0xBD,
/// <summary></summary>
OEMPeriod = 0xBE,
/// <summary></summary>
OEM2 = 0xBF,
/// <summary></summary>
OEM3 = 0xC0,
/// <summary></summary>
OEM4 = 0xDB,
/// <summary></summary>
OEM5 = 0xDC,
/// <summary></summary>
OEM6 = 0xDD,
/// <summary></summary>
OEM7 = 0xDE,
/// <summary></summary>
OEM8 = 0xDF,
/// <summary></summary>
OEMAX = 0xE1,
/// <summary></summary>
OEM102 = 0xE2,
/// <summary></summary>
ICOHelp = 0xE3,
/// <summary></summary>
ICO00 = 0xE4,
/// <summary></summary>
ProcessKey = 0xE5,
/// <summary></summary>
ICOClear = 0xE6,
/// <summary></summary>
Packet = 0xE7,
/// <summary></summary>
OEMReset = 0xE9,
/// <summary></summary>
OEMJump = 0xEA,
/// <summary></summary>
OEMPA1 = 0xEB,
/// <summary></summary>
OEMPA2 = 0xEC,
/// <summary></summary>
OEMPA3 = 0xED,
/// <summary></summary>
OEMWSCtrl = 0xEE,
/// <summary></summary>
OEMCUSel = 0xEF,
/// <summary></summary>
OEMATTN = 0xF0,
/// <summary></summary>
OEMFinish = 0xF1,
/// <summary></summary>
OEMCopy = 0xF2,
/// <summary></summary>
OEMAuto = 0xF3,
/// <summary></summary>
OEMENLW = 0xF4,
/// <summary></summary>
OEMBackTab = 0xF5,
/// <summary></summary>
ATTN = 0xF6,
/// <summary></summary>
CRSel = 0xF7,
/// <summary></summary>
EXSel = 0xF8,
/// <summary></summary>
EREOF = 0xF9,
/// <summary></summary>
Play = 0xFA,
/// <summary></summary>
Zoom = 0xFB,
/// <summary></summary>
Noname = 0xFC,
/// <summary></summary>
PA1 = 0xFD,
/// <summary></summary>
OEMClear = 0xFE
}

c# VirtualKeys的更多相关文章

  1. C#调用Win32API

    Win32API.cs   using System;using System.Drawing;using System.Runtime.InteropServices;using Lordal.Wi ...

  2. [VB.NET]调用API获取/设置键盘按键状态

    1.调用GetAsyncKeyState()获取指定按键的状态,GetActiveKey()检索指定范围内的按键状态 2.调用keybd_event()可合成一次击键事件,通常两次击键事件间需要设定时 ...

  3. C#操作内存读写方法的主要实现代码

    C#操作内存读写方法是什么呢?让我们来看看具体的实例实现: using System.Runtime.InteropServices; using System.Text; publicclass F ...

  4. WPF 操作键盘

    #region 打开键盘的键 const uint KEYEVENTF_EXTENDEDKEY = 0x1; const uint KEYEVENTF_KEYUP = 0x2; [DllImport( ...

  5. (英文版)使用Visual Studio 2015 编写 MASM 汇编程序!

    原文地址:http://kipirvine.com/asm/gettingStartedVS2015/index.htm#CreatingProject Getting Started with MA ...

  6. MTK Android Driver知识大全

    一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CPU或MCU接口).DPI(也叫RGB接口).DSI.在使用DSI接口时,目前75/77都只支持到2条da ...

  7. c#调用钩子

    1 概述 在c++中有钩子程序,但是在C#还没有对其进行封装,所以需要自己根据实际情况调用钩子.钩子在我的理解下是,通过初始化钩子与系统中消息映射建立某种关系,当点击鼠标或者键盘,就会通过钩子中的回调 ...

  8. C#可以直接调用的Win32API(和VCL做的整理工作非常类似)

    以前整理的Win32 API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的.以前用在一个多窗口界面中,当轮询窗口时,调用API会提高很多效率. 源码下载 http://files.cn ...

  9. 【转】MTK Android Driver知识大全

    原文网址:http://www.cnblogs.com/biglucky/p/4413797.html 一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CP ...

随机推荐

  1. ceph问题汇总

    1. [ceph_deploy][ERROR ]RuntimeError: Failed to execute command: yum -y install epel-release 解决方案 进入 ...

  2. ecshop新版不能在模板文件.dwt和.lbi中直接添加php代码的解决方法

    ecshop新版不能在模板文件.dwt和.lbi中直接添加php代码了,为什么呢? 因为直接在模板中加入php函数和代码,没有经过过滤,容易造成安全隐患.程序源码安全是非常重要的. 不过如果有朋友希望 ...

  3. HDU 5875 Function 2016 ACM/ICPC Asia Regional Dalian Online

    N个数(N<=100000),M个询问,每次询问L,R,求F(L,R). F(L,R)=F(L,R-1)%A[R] , L<R 这道题数据比较鶸 可以直接用递减爆 正确做法应该是倍增 用倍 ...

  4. Android 热修复(一)

    名词: dex:java文件编译class 然后生成 dex文件在Android上运行: 1.dex分包: 2.找出出现问题的dex文件进行替换操作 3.下载dex文件,静默替换有问题的dex文件,进 ...

  5. dirname命令和basename命令

    dirname返回文件所在目录路径,而basename则相反,去掉路径返回最后的文件名. direname: 用途 从给定的包含绝对路径的文件名中去除文件名(非目录的部分),然后返回剩下的路径(目录的 ...

  6. mysql创建函数槽点

    上机环境 mysql8.0 navicat for mysql 很有那么一批软件程序,要不做点脱了裤子放屁的事儿就觉得自己不够二进制似的,今儿写了一下午mysql函数,怎么都通过不了,上网一看 mys ...

  7. qt5--模态对话框和非模态对话框

    视频教程:https://www.bilibili.com/video/av51766541/?p=20 #include "win.h" #include <QMenuBa ...

  8. Flyway Validate failed: Migration checksum mismatch for migration version 1.0.0.01 错误

    在运行系统的时候出现错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ...

  9. VMware Guest customization fails on Linux

    1.1  症状现象 登录Guest OS,在/var/log/vmware-imc/toolsDeployPkg.log文件中,您会看到以下条目: Customization command fail ...

  10. PyCharm将main.py解析成text文件的解决方法

    问题:PyCharm将main.py解释成文本文件,没有代码提示,也无法执行 解决方法:File->Settings->Editor->File Types ->选则Text ...