namespace Microsoft.Win32 { //VK定义 public static partial class NativeMethods { /// /// 鼠标左按钮。 /// public const short VK_LBUTTON = 0x01; /// /// 鼠标右按钮。 /// public const short VK_RBUTTON = 0x02; /// /// Cancel 键。 /// public const short VK_CANCEL = 0x03; /// /// 鼠标中按钮(三个按钮的鼠标)。 /// public const short VK_MBUTTON = 0x04; /// /// 第一个 X 鼠标按钮(五个按钮的鼠标)。 /// public const short VK_XBUTTON1 = 0x05; /// /// 第二个 X 鼠标按钮(五个按钮的鼠标)。 /// public const short VK_XBUTTON2 = 0x06; /// /// Backspace 键。 /// public const short VK_BACK = 0x08; /// /// Tab 键。 /// public const short VK_TAB = 0x09; /// /// LINEFEED 键。 /// public const short VK_LINEFEED = 0x0A; /// /// Clear 键。 /// public const short VK_CLEAR = 0x0C; /// /// Enter 键。 /// public const short VK_ENTER = 0x0D; /// /// Return 键。 /// public const short VK_RETURN = 0x0D; /// /// Shift 键。 /// public const short VK_SHIFT = 0x10; /// /// Ctrl 键。 /// public const short VK_CONTROL = 0x11; /// /// Alt 键。 /// public const short VK_MENU = 0x12; /// /// Pause 键。 /// public const short VK_PAUSE = 0x13; /// /// Caps Lock 键。 /// public const short VK_CAPSLOCK = 0x14; /// /// Caps Lock 键。 /// public const short VK_CAPITAL = 0x14; /// /// IME Kana 模式键。 /// public const short VK_KANA = 0x15; /// /// IME Hanguel 模式键。(为了保持兼容性而设置;使用 HangulMode) /// public const short VK_HANGUEL = 0x15; /// /// IME Hangul 模式键。 /// public const short VK_HANGUL = 0x15; /// /// IME Junja 模式键。 /// public const short VK_JUNJA = 0x17; /// /// IME 最终模式键。 /// public const short VK_FINAL = 0x18; /// /// IME Kanji 模式键。 /// public const short VK_KANJI = 0x19; /// /// IME Hanja 模式键。 /// public const short VK_HANJA = 0x19; /// /// Esc 键。 /// public const short VK_ESCAPE = 0x1B; /// /// IME 转换键。 /// public const short VK_CONVERT = 0x1C; /// /// IME 非转换键。 /// public const short VK_NONCONVERT = 0x1D; /// /// IME 接受键,替换 System.Windows.Forms.Keys.IMEAceept。 /// public const short VK_ACCEPT = 0x1E; /// /// IME 模式更改键。 /// public const short VK_MODECHANGE = 0x1F; /// /// 空格键。 /// public const short VK_SPACE = 0x20; /// /// Page Up 键。 /// public const short VK_PRIOR = 0x21; /// /// Page Up 键。 /// public const short VK_PAFEUP = 0x21; /// /// Page Down 键。 /// public const short VK_NEXT = 0x22; /// /// Page Down 键。 /// public const short VK_PAGEDOWN = 0x22; /// /// End 键。 /// public const short VK_END = 0x23; /// /// Home 键。 /// public const short VK_HOME = 0x24; /// /// 向左键。 /// public const short VK_LEFT = 0x25; /// /// 向上键。 /// public const short VK_UP = 0x26; /// /// 向右键。 /// public const short VK_RIGHT = 0x27; /// /// 向下键。 /// public const short VK_DOWN = 0x28; /// /// Select 键。 /// public const short VK_SELECT = 0x29; /// /// Print 键。 /// public const short VK_PRINT = 0x2A; /// /// EXECUTE 键。 /// public const short VK_EXECUTE = 0x2B; /// /// Print Screen 键。 /// public const short VK_PRINTSCREEN = 0x2C; /// /// Print Screen 键。 /// public const short VK_SNAPSHOT = 0x2C; /// /// Ins 键。 /// public const short VK_INSERT = 0x2D; /// /// DeL 键。 /// public const short VK_DELETE = 0x2E; /// /// Help 键。 /// public const short VK_HELP = 0x2F; /// /// 0 键。 /// public const short VK_0 = 0x30; /// /// 1 键。 /// public const short VK_1 = 0x31; /// /// 2 键。 /// public const short VK_2 = 0x32; /// /// 3 键。 /// public const short VK_3 = 0x33; /// /// 4 键。 /// public const short VK_4 = 0x34; /// /// 5 键。 /// public const short VK_5 = 0x35; /// /// 6 键。 /// public const short VK_6 = 0x36; /// /// 7 键。 /// public const short VK_7 = 0x37; /// /// 8 键。 /// public const short VK_8 = 0x38; /// /// 9 键。 /// public const short VK_9 = 0x39; /// /// A 键。 /// public const short VK_A = 0x41; /// /// B 键。 /// public const short VK_B = 0x42; /// /// C 键。 /// public const short VK_C = 0x43; /// /// D 键。 /// public const short VK_D = 0x44; /// /// E 键。 /// public const short VK_E = 0x45; /// /// F 键。 /// public const short VK_F = 0x46; /// /// G 键。 /// public const short VK_G = 0x47; /// /// H 键。 /// public const short VK_H = 0x48; /// /// I 键。 /// public const short VK_I = 0x49; /// /// J 键。 /// public const short VK_J = 0x4A; /// /// K 键。 /// public const short VK_K = 0x4B; /// /// L 键。 /// public const short VK_L = 0x4C; /// /// M 键。 /// public const short VK_M = 0x4D; /// /// N 键。 /// public const short VK_N = 0x4E; /// /// O 键。 /// public const short VK_O = 0x4F; /// /// P 键。 /// public const short VK_P = 0x50; /// /// Q 键。 /// public const short VK_Q = 0x51; /// /// R 键。 /// public const short VK_R = 0x52; /// /// S 键。 /// public const short VK_S = 0x53; /// /// T 键。 /// public const short VK_T = 0x54; /// /// U 键。 /// public const short VK_U = 0x55; /// /// V 键。 /// public const short VK_V = 0x56; /// /// W 键。 /// public const short VK_W = 0x57; /// /// X 键。 /// public const short VK_X = 0x58; /// /// Y 键。 /// public const short VK_Y = 0x59; /// /// Z 键。 /// public const short VK_Z = 0x5A; /// /// 左 Windows 徽标键(Microsoft Natural Keyboard,人体工程学键盘)。 /// public const short VK_LWIN = 0x5B; /// /// 右 Windows 徽标键(Microsoft Natural Keyboard,人体工程学键盘)。 /// public const short VK_RWIN = 0x5C; /// /// 应用程序键(Microsoft Natural Keyboard,人体工程学键盘)。 /// public const short VK_APPS = 0x5D; /// /// 计算机睡眠键。 /// public const short VK_SLEEP = 0x5F; /// /// 数字键盘上的 0 键。 /// public const short VK_NUMPAD0 = 0x60; /// /// 数字键盘上的 1 键。 /// public const short VK_NUMPAD1 = 0x61; /// /// 数字键盘上的 2 键。 /// public const short VK_NUMPAD2 = 0x62; /// /// 数字键盘上的 3 键。 /// public const short VK_NUMPAD3 = 0x63; /// /// 数字键盘上的 4 键。 /// public const short VK_NUMPAD4 = 0x64; /// /// 数字键盘上的 5 键。 /// public const short VK_NUMPAD5 = 0x65; /// /// 数字键盘上的 6 键。 /// public const short VK_NUMPAD6 = 0x66; /// /// 数字键盘上的 7 键。 /// public const short VK_NUMPAD7 = 0x67; /// /// 数字键盘上的 8 键。 /// public const short VK_NUMPAD8 = 0x68; /// /// 数字键盘上的 9 键。 /// public const short VK_NUMPAD9 = 0x69; /// /// 数字键盘上的 乘号键。 /// public const short VK_MULTIPLY = 0x6A; /// /// 数字键盘上的 加号键。 /// public const short VK_ADD = 0x6B; /// /// 数字键盘上的 回车键。 /// public const short VK_SEPARATOR = 0x6C; /// /// 数字键盘上的 减号键。 /// public const short VK_SUBTRACT = 0x6D; /// /// 数字键盘上的 句点键。 /// public const short VK_DECIMAL = 0x6E; /// /// 数字键盘上的 除号键。 /// public const short VK_DIVIDE = 0x6F; /// /// F1 键。 /// public const short VK_F1 = 0x70; /// /// F2 键。 /// public const short VK_F2 = 0x71; /// /// F3 键。 /// public const short VK_F3 = 0x72; /// /// F4 键。 /// public const short VK_F4 = 0x73; /// /// F5 键。 /// public const short VK_F5 = 0x74; /// /// F6 键。 /// public const short VK_F6 = 0x75; /// /// F7 键。 /// public const short VK_F7 = 0x76; /// /// F8 键。 /// public const short VK_F8 = 0x77; /// /// F9 键。 /// public const short VK_F9 = 0x78; /// /// F10 键。 /// public const short VK_F10 = 0x79; /// /// F11 键。 /// public const short VK_F11 = 0x7A; /// /// F12 键。 /// public const short VK_F12 = 0x7B; /// /// F13 键。 /// public const short VK_F13 = 0x7C; /// /// F14 键。 /// public const short VK_F14 = 0x7D; /// /// F15 键。 /// public const short VK_F15 = 0x7E; /// /// F16 键。 /// public const short VK_F16 = 0x7F; /// /// F17 键。 /// public const short VK_F17 = 0x80; /// /// F18 键。 /// public const short VK_F18 = 0x81; /// /// F19 键。 /// public const short VK_F19 = 0x82; /// /// F20 键。 /// public const short VK_F20 = 0x83; /// /// F21 键。 /// public const short VK_F21 = 0x84; /// /// F22 键。 /// public const short VK_F22 = 0x85; /// /// F23 键。 /// public const short VK_F23 = 0x86; /// /// F24 键。 /// public const short VK_F24 = 0x87; /// /// Num Lock 键。 /// public const short VK_NUMLOCK = 0x90; /// /// Scroll Lock 键。 /// public const short VK_SCROLL = 0x91; /// /// /// public const short VK_OEM_NEC_EQUAL = 0x92; /// /// /// public const short VK_OEM_FJ_JISHO = 0x92; /// /// /// public const short VK_OEM_FJ_MASSHOU = 0x93; /// /// /// public const short VK_OEM_FJ_TOUROKU = 0x94; /// /// /// public const short VK_OEM_FJ_LOYA = 0x95; /// /// /// public const short VK_OEM_FJ_ROYA = 0x96; /// /// 左 Shift 键。 /// public const short VK_LSHIFT = 0xA0; /// /// 右 Shift 键。 /// public const short VK_RSHIFT = 0xA1; /// /// 左 Ctrl 键。 /// public const short VK_LCONTROL = 0xA2; /// /// 右 Ctrl 键。 /// public const short VK_RCONTROL = 0xA3; /// /// 左 Alt 键。 /// public const short VK_LMENU = 0xA4; /// /// 右 Alt 键。 /// public const short VK_RMENU = 0xA5; /// /// 浏览器后退键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_BACK = 0xA6; /// /// 浏览器前进键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_FORWARD = 0xA7; /// /// 浏览器刷新键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_REFRESH = 0xA8; /// /// 浏览器停止键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_STOP = 0xA9; /// /// 浏览器搜索键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_SEARCH = 0xAA; /// /// 浏览器收藏夹键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_FAVORITES = 0xAB; /// /// 浏览器主页键(Windows 2000 或更高版本)。 /// public const short VK_BROWSER_HOME = 0xAC; /// /// 静音键(Windows 2000 或更高版本)。 /// public const short VK_VOLUME_MUTE = 0xAD; /// /// 减小音量键(Windows 2000 或更高版本)。 /// public const short VK_VOLUME_DOWN = 0xAE; /// /// 增大音量键(Windows 2000 或更高版本)。 /// public const short VK_VOLUME_UP = 0xAF; /// /// 媒体下一曲目键(Windows 2000 或更高版本)。 /// public const short VK_MEDIA_NEXT_TRACK = 0xB0; /// /// 媒体上一曲目键(Windows 2000 或更高版本)。 /// public const short VK_MEDIA_PREV_TRACK = 0xB1; /// /// 媒体停止键(Windows 2000 或更高版本)。 /// public const short VK_MEDIA_STOP = 0xB2; /// /// 媒体播放暂停键(Windows 2000 或更高版本)。 /// public const short VK_MEDIA_PLAY_PAUSE = 0xB3; /// /// 启动邮件键(Windows 2000 或更高版本)。 /// public const short VK_LAUNCH_MAIL = 0xB4; /// /// 选择媒体键(Windows 2000 或更高版本)。 /// public const short VK_LAUNCH_MEDIA_SELECT = 0xB5; /// /// 启动应用程序一键(Windows 2000 或更高版本)。 /// public const short VK_LAUNCH_APP1 = 0xB6; /// /// 启动应用程序二键(Windows 2000 或更高版本)。 /// public const short VK_LAUNCH_APP2 = 0xB7; /// /// OEM 1 键。 /// public const short VK_OEM_1 = 0xBA; // ';:' for US /// /// 美式标准键盘上的 OEM 分号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_SEMICOLON = 0xBA; /// /// 任何国家/地区键盘上的 OEM 加号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_PLUS = 0xBB; /// /// 任何国家/地区键盘上的 OEM 逗号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_COMMA = 0xBC; /// /// 任何国家/地区键盘上的 OEM 减号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_MINUS = 0xBD; /// /// 任何国家/地区键盘上的 OEM 句点键(Windows 2000 或更高版本)。 /// public const short VK_OEM_PERIOD = 0xBE; /// /// 美式标准键盘上的 OEM 问号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_QUESTION = 0xBF; /// /// OEM 2 键。 /// public const short VK_OEM_2 = 0xBF; /// /// 美式标准键盘上的 OEM 波形符键(Windows 2000 或更高版本)。 /// public const short VK_OEM_OEMTILDE = 0xC0; /// /// OEM 3 键。 /// public const short VK_OEM_3 = 0xC0; /// /// OEM 4 键。 /// public const short VK_OEM_4 = 0xDB; /// /// 美式标准键盘上的 OEM 左括号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_OPENBRACKETS = 0xDB; /// /// 美式标准键盘上的 OEM 管道键(Windows 2000 或更高版本)。 /// public const short VK_OEM_PIPLE = 0xDC; /// /// OEM 5 键。 /// public const short VK_OEM_5 = 0xDC; /// /// OEM 6 键。 /// public const short VK_OEM_6 = 0xDD; /// /// 美式标准键盘上的 OEM 右括号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_CLOSEBRACKETS = 0xDD; /// /// OEM 7 键。 /// public const short VK_OEM_7 = 0xDE; /// /// 美式标准键盘上的 OEM 单/双引号键(Windows 2000 或更高版本)。 /// public const short VK_OEM_QUOTES = 0xDE; /// /// OEM 8 键。 /// public const short VK_OEM_8 = 0xDF; /// /// 日本AX键盘的 AX 键。 /// public const short VK_OEM_AX = 0xE1; /// /// OEM 102 键。 /// public const short VK_OEM_102 = 0xE2; /// /// RT 102 键的键盘上的 OEM 尖括号或反斜杠键(Windows 2000 或更高版本)。 /// public const short VK_OEM_BACKSLASH = 0xE2; /// /// /// public const short VK_ICO_HELP = 0xE3; /// /// /// public const short VK_ICO_00 = 0xE4; /// /// Process Key 键。输入法处理键。 /// public const short VK_PROCESSKEY = 0xE5; /// /// /// public const short VK_ICO_CLEAR = 0xE6; /// /// 用于将 Unicode 字符当作键击传递。Packet 键值是用于非键盘输入法的 32 位虚拟键值的低位字。 /// public const short VK_PACKET = 0xE7; /// /// /// public const short VK_OEM_RESET = 0xE9; /// /// /// public const short VK_OEM_JUMP = 0xEA; /// /// /// public const short VK_OEM_PA1 = 0xEB; /// /// /// public const short VK_OEM_PA2 = 0xEC; /// /// /// public const short VK_OEM_PA3 = 0xED; /// /// /// public const short VK_OEM_WSCTRL = 0xEE; /// /// /// public const short VK_OEM_CUSEL = 0xEF; /// /// /// public const short VK_OEM_ATTN = 0xF0; /// /// /// public const short VK_OEM_FINISH = 0xF1; /// /// /// public const short VK_OEM_COPY = 0xF2; /// /// /// public const short VK_OEM_AUTO = 0xF3; /// /// /// public const short VK_OEM_ENLW = 0xF4; /// /// /// public const short VK_OEM_BACKTAB = 0xF5; /// /// Attn 键。 /// public const short VK_ATTN = 0xF6; /// /// Crsel 键。 /// public const short VK_CRSEL = 0xF7; /// /// Exsel 键。 /// public const short VK_EXSEL = 0xF8; /// /// ERASE EOF 键。 /// public const short VK_EREOF = 0xF9; /// /// Play 键。 /// public const short VK_PLAY = 0xFA; /// /// Zoom 键。 /// public const short VK_ZOOM = 0xFB; /// /// 保留以备将来使用的常数。 /// public const short VK_NONAME = 0xFC; /// /// PA1 键。 /// public const short VK_PA1 = 0xFD; /// /// Clear 键。 /// public const short VK_OEM_CLEAR = 0xFE; } }