c# VirtualKeys
/// <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的更多相关文章
- C#调用Win32API
Win32API.cs using System;using System.Drawing;using System.Runtime.InteropServices;using Lordal.Wi ...
- [VB.NET]调用API获取/设置键盘按键状态
1.调用GetAsyncKeyState()获取指定按键的状态,GetActiveKey()检索指定范围内的按键状态 2.调用keybd_event()可合成一次击键事件,通常两次击键事件间需要设定时 ...
- C#操作内存读写方法的主要实现代码
C#操作内存读写方法是什么呢?让我们来看看具体的实例实现: using System.Runtime.InteropServices; using System.Text; publicclass F ...
- WPF 操作键盘
#region 打开键盘的键 const uint KEYEVENTF_EXTENDEDKEY = 0x1; const uint KEYEVENTF_KEYUP = 0x2; [DllImport( ...
- (英文版)使用Visual Studio 2015 编写 MASM 汇编程序!
原文地址:http://kipirvine.com/asm/gettingStartedVS2015/index.htm#CreatingProject Getting Started with MA ...
- MTK Android Driver知识大全
一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CPU或MCU接口).DPI(也叫RGB接口).DSI.在使用DSI接口时,目前75/77都只支持到2条da ...
- c#调用钩子
1 概述 在c++中有钩子程序,但是在C#还没有对其进行封装,所以需要自己根据实际情况调用钩子.钩子在我的理解下是,通过初始化钩子与系统中消息映射建立某种关系,当点击鼠标或者键盘,就会通过钩子中的回调 ...
- C#可以直接调用的Win32API(和VCL做的整理工作非常类似)
以前整理的Win32 API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的.以前用在一个多窗口界面中,当轮询窗口时,调用API会提高很多效率. 源码下载 http://files.cn ...
- 【转】MTK Android Driver知识大全
原文网址:http://www.cnblogs.com/biglucky/p/4413797.html 一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CP ...
随机推荐
- Windows10永久激活的工具
最近发现一个很好用的Windows10 永久激活的工具,比KMS什么的管用,而且无毒无公害.几乎支持所有的win10版本.感兴趣的朋友可以试试.之前win10没洗白的同学,也试试吧,说不定就洗白了呢. ...
- BZOJ1791 基环树直径
非递归版4S /************************************************************** Problem: 1791 User: 18357 Lan ...
- Elasticsearch改动
随着Elasticsearch的版本升级,Elasticsearch的一些特性也在改变,下面是一些需要注意的地方 v6.x 版本之前 : 一个index下面是可以创建多个type v6.x 版本 : ...
- Device Tree(一):背景介绍 转
作者:linuxer 发布于:2014-5-22 16:46 分类:统一设备模型 一.前言 作为一个多年耕耘在linux 2.6.23内核的开发者,各个不同项目中各种不同周边外设驱动的开发以及各种琐碎 ...
- tomcat访问日志
* %a - Remote IP address # 远程ip地址 * %A - Local IP address # 本地ip地址 * %b - Bytes sent, excluding HTTP ...
- 关于css阴影和浮动
盒子阴影box-shadow box-shadow:0 0 1px #000 inset; 水平 垂直 模糊 颜色 : [1] inset代表框内阴影,不加inset代表框外阴影 [2]第1个 ...
- 如何解决tab栏切换只发一次请求的问题
用的antd的tab栏组件,发现切换tab栏只在componentDidMount里面发了一次请求,后来发现是缓存问题,于是用activeKey再次进行了判断,代码如下:
- uniapp动态改变底部tabBar和导航标题navigationBarTitleText
在开发中,我们会遇到需求国际化,那么底部tabBar和导航标题navigationBarTitleText就要动态切换: 1.改变底部tabBar: uni.setTabBarItem({ index ...
- element-ui 弹出添加拖拽功能
1.新建dialog.js文件2.在main.js 中引入dialog.js import ‘./utils/dialog.js’3. 使用:<el-dialog v-dialogDrag&g ...
- marquee跑马灯效果的相关属性
介绍HTML设置滚动文字marquee的相关属性 ㈠文字滚动标签 设置文字滚动使用<marquee></marquee>标签,可以再标签里面设置字体的颜色,字号,字体大小等. ...