vdfsplat / AppSrc / cVirtualKeys.h @ 61
History | View | Annotate | Download (4.85 KB)
| 1 |
//TH-Header
|
|---|---|
| 2 |
//*****************************************************************************************
|
| 3 |
// Copyright (c) 2004 Debug Project
|
| 4 |
// All rights reserved.
|
| 5 |
//
|
| 6 |
// $FileName : cVirtualKeys header
|
| 7 |
// $ProjectName : DebugAssistent
|
| 8 |
// $Authors : Wil van Antwerpen
|
| 9 |
// $Created : 27.07.2004 09:51
|
| 10 |
// $Type : (C)opyright 2004 Antwise Solutions
|
| 11 |
//
|
| 12 |
// Contents:
|
| 13 |
//
|
| 14 |
//*****************************************************************************************
|
| 15 |
//TH-RevisionStart
|
| 16 |
//TH-RevisionEnd
|
| 17 |
|
| 18 |
Use WinUser.pkg // includes the keyboard scan codes defined by DAW
|
| 19 |
// double word len
|
| 20 |
// FFFFFFFF
|
| 21 |
Define KEYEVENTF_EXTENDEDKEY For |CI$00000001
|
| 22 |
Define KEYEVENTF_KEYUP For |CI$00000002
|
| 23 |
|
| 24 |
Define LOW_WORD_MASK For |CI$00FF |
| 25 |
Define HIGH_WORD_MASK For |CI$FF00 |
| 26 |
|
| 27 |
|
| 28 |
//
|
| 29 |
// The missing virtual keycodes that are not declared when using
|
| 30 |
// VDF9
|
| 31 |
// "W2k+" stands for Windows 2000 or thereafter
|
| 32 |
//
|
| 33 |
Define VK_XBUTTON1 For |CI$05 // W2k+ X1 mouse button |
| 34 |
Define VK_XBUTTON2 For |CI$06 // W2k+ X2 mouse button |
| 35 |
|
| 36 |
//Define VK_KANA For |CI$15 // IME Kana mode
|
| 37 |
Define VK_HANGUL For |CI$15 // IME Hangul mode |
| 38 |
// - 16 Undefined
|
| 39 |
Define VK_JUNJA For |CI$17 // IME Junja mode |
| 40 |
Define VK_FINAL For |CI$18 // IME final mode |
| 41 |
Define VK_HANJA For |CI$19 // IME Hanja mode |
| 42 |
Define VK_KANJI For |CI$19 // IME Kanji mode |
| 43 |
// 1A Undefined
|
| 44 |
Define VK_CONVERT For |CI$1C // IME convert |
| 45 |
Define VK_NONCONVERT For |CI$1D // IME nonconvert |
| 46 |
Define VK_ACCEPT For |CI$1E // IME accept |
| 47 |
Define VK_MODECHANGE For |CI$1F // IME mode change request |
| 48 |
Define VK_SLEEP For |CI$5F // Computer Sleep key |
| 49 |
|
| 50 |
Define VK_BROWSER_BACK For |CI$A6 // W2k+ Browser Back key
|
| 51 |
Define VK_BROWSER_FORWARD For |CI$A7 // W2k+ Browser Forward key
|
| 52 |
Define VK_BROWSER_REFRESH For |CI$A8 // W2k+ Browser Refresh key
|
| 53 |
Define VK_BROWSER_STOP For |CI$A9 // W2k+ Browser Stop key
|
| 54 |
Define VK_BROWSER_SEARCH For |CI$AA // W2k+ Browser Search key
|
| 55 |
Define VK_BROWSER_FAVORITES For |CI$AB // W2k+ Browser Favorites key
|
| 56 |
Define VK_BROWSER_HOME For |CI$AC // W2k+ Browser Start And Home key
|
| 57 |
Define VK_VOLUME_MUTE For |CI$AD // W2k+ Volume Mute key
|
| 58 |
Define VK_VOLUME_DOWN For |CI$AE // W2k+ Volume Down key
|
| 59 |
Define VK_VOLUME_UP For |CI$AF // W2k+ Volume Up key
|
| 60 |
Define VK_MEDIA_NEXT_TRACK For |CI$B0 // W2k+ Next Track key
|
| 61 |
Define VK_MEDIA_PREV_TRACK For |CI$B1 // W2k+ Prev Track key
|
| 62 |
Define VK_MEDIA_STOP For |CI$B2 // W2k+ Stop Media key
|
| 63 |
Define VK_MEDIA_PLAY_PAUSE For |CI$B3 // W2k+ Play/Pause Media key
|
| 64 |
Define VK_LAUNCH_MAIL For |CI$B4 // W2k+ Start Mail key
|
| 65 |
Define VK_LAUNCH_MEDIA_SELECT For |CI$B5 // W2k+ Select Media key
|
| 66 |
Define VK_LAUNCH_APP1 For |CI$B6 // W2k+ Start Application 1 key
|
| 67 |
Define VK_LAUNCH_APP2 For |CI$B7 // W2k+ Start Application 2 key
|
| 68 |
// B8-B9 Reserved
|
| 69 |
Define VK_OEM_1 For |CI$BA // W2k+ For the US standard keyboard, the ';:' key
|
| 70 |
Define VK_OEM_PLUS For |CI$BB // W2k+ For any country/region, the '+' key
|
| 71 |
Define VK_OEM_COMMA For |CI$BC // W2k+ For any country/region, the ',' key
|
| 72 |
Define VK_OEM_MINUS For |CI$BD // W2k+ For any country/region, the '-' key
|
| 73 |
Define VK_OEM_PERIOD For |CI$BE // W2k+ For any country/region, the '.' key
|
| 74 |
Define VK_OEM_2 For |CI$BF // W2k+ For the US standard keyboard, the '/?' key
|
| 75 |
Define VK_OEM_3 For |CI$C0 // W2k+ For the US standard keyboard, the '`~' key
|
| 76 |
// C1-D7 Reserved //
|
| 77 |
// D8-DA Unassigned //
|
| 78 |
Define VK_OEM_4 For |CI$DB // W2k+ For the US standard keyboard, the '[{' key
|
| 79 |
Define VK_OEM_5 For |CI$DC // W2k+ For the US standard keyboard, the '\|' key
|
| 80 |
Define VK_OEM_6 For |CI$DD // W2k+ For the US standard keyboard, the ']}' key
|
| 81 |
Define VK_OEM_7 For |CI$DE // W2k+ For the US standard keyboard, the 'single-quote/double-quote' key
|
| 82 |
Define VK_OEM_8 For |CI$DF //
|
| 83 |
// E0 Reserved //
|
| 84 |
// E1 OEM specific //
|
| 85 |
Define VK_OEM_102 For |CI$E2 // W2k+ Either the angle bracket key Or the backslash key on the RT 102-key keyboard
|
| 86 |
// E3-E4 OEM specific //
|
| 87 |
// E6 OEM specific //
|
| 88 |
Define VK_PACKET For |CI$E7 // W2k+ Used To pass Unicode characters as If they were keystrokes. The VK_PACKET key Is the low word Of a 32-bit Virtual Key value used For non-keyboard input methods.
|
| 89 |
// E8 Unassigned
|
| 90 |
// E9-F5 OEM specific
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
External_function fKbdEvent "keybd_event" User32.dll ;
|
| 95 |
Integer bVk ; |
| 96 |
Integer bScan ; |
| 97 |
DWord dwFlags ; |
| 98 |
Pointer dwExtraInfo ; |
| 99 |
Returns Integer |
| 100 |
|
| 101 |
External_function fVkKeyScan "VkKeyScan" User32.dll ;
|
| 102 |
Char cCh ; |
| 103 |
Returns Short |
| 104 |
|
| 105 |
|