Delphi keyboard key pseudo code

Source: Internet
Author: User

Usage: If key = CHR (vk_return) then...
Constant name
Hexadecimal value
Decimal Value
Corresponding buttons
Vk_lbutton 01 1 Left mouse button
Vk_rbutton 02 2
Right-click
VK-CANCEL
03 3 CTRL + break (usually not required)
Vk_mbutton
04 4 Middle mouse buttons (three-click mouse)
Vk_back
08 8
Backspace key
Vk_tab
09 9
Tab key
Vk_clear
0c 12 Clear key (numeric keypad 5 when num lock is disabled)
Vk_return 0d 13 Enter
Vk_shift
10 16 Shift key
Vk_control
11 17
CTRL
Vk_menu
12 18
Alt key
Vk_pause
13 19
Pause key
Vk_capital
14 20
Caps Lock key
Vk_escape
1B 27 Ese key
Vk_space
20 32
Spacebar key
Vk_prior 21 33
Page up key
Vk_next
22 34
Page domw key
Vk_end
23 35
End key
Vk_home
24 36
Home Key
Vk_left
25 37
Left arrow)
Vk_up
26 38
Up arrow key (upper)
Vk_right
27 39
Right arrow key (→)
Vk_down
28 40
Down Arrow)
Vk_select
29 41
Select key
Vk_print 2a 42  
Vk_execute
2b 43 Execute key
Vk_snapshot
2c 44 Print Screen key (capture screen)
Vk_insert
2d 45 INS key (numeric keyboard 0 when num lock is disabled)
Vk_delete
2e 46 Del key (numeric keyboard when num lock is disabled .)
Vk_help
2f 47 Help key
Vk_0
30 48 0 Key
Vk_1 31 49 1 key
Vk_2 32 50 2 key
Vk_3 33 51 3 key
Vk_4 34 52 4 Key
Vk_5 35 53 5 key
Vk_6 36 54 6 keys
Vk_7 37 55 Key 7
Vk_8 38 56 8 Key
Vk_9 39 57 9 Key
Vk_a 41 65 Key
Vk_ B 42 66 Key B
Vk_c 43 67 C key
Vk_d 44 68 D key
Vk_e 45 69 Key E
Vk_f 46 70 F key
Vk_g 47 71 G key
Vk_h 48 72 H key
Vk_ I 49 73 I key
Vk_j 4A 74 J key
Vk_k 4b 75 K key
Vk_l 4C 76 L key
Vk_m 4d 77 M key
Vk_n 4e 78 N key
Vk_o 4f 79 O key
Vk_p 50 80 P key
Vk_q 51 81 Q key
Vk_r 52 82 R key
Vk_s 53 83 S key
Vk_t 54 84 T key
Vk_u 55 85 U key
Vk_v 56 86 V Key
Vk_w 57 87 W key
Vk_x 58 88 X key
Vk_y 59 89 Y key
Vk_z 5A 90 Z key
Vk_numpad0
60 96 Number Key 0
Vk_numpad1 61 97 Key 1
Vk_numpad2 62 98 Number key 2
Vk_numpad3 62 99 Number key 3
Vk_numpad4 64 100 Number key 4
Vk_numpad5 65 101 Number key 5
Vk_numpad6 66 102 Number Key 6
Vk_numpad7 67 103 Key 7
Vk_numpad8 68 104 Number key 8
Vk_numpad9 69 105 Number key 9
Vk_multiply
6a 106 * Key on the numeric keyboard
Vk_add
6b 107 + Key on the numeric keyboard
Vk_separator
6c 108 Separator key
Vk_subtract
6d 109 -Key on the numeric keyboard
Vk_decimal
6e 110 The. Key on the numeric keypad
Vk_divide 6f 111 The/key on the numeric keyboard.
Vk_f1
70 112 F1 key
Vk_f2 71 113 F2 key
Vk_f3 72 114 F3 key
Vk_f4 73 115 F4 key
Vk_f5 74 116 F5
Vk_f6 75 117 F6 key
Vk_f7 76 118 F7 key
Vk_f8 77 119 F8
Vk_f9 78 120 F9 key
Vk_f10 79 121 F10 key
Vk_f11 7A 122 F11 key
Vk_f12 7b 123 F12 key
Vk_numlock
90 144 Num Lock key
Vk_scroll
91 145 Scroll Lock key
       
Not mentioned above: (all on the big keyboard)      
Vk_lwin   91 Left win key
Vk_rwin   92 Right win key
Vk_apps   93 Right-click the key on the left and right-click it. A shortcut menu is displayed.
    186 ; (Semicolon)
    187 = Key
    188 , Key (comma)
    189 -Key (minus sign)
    190 . Key (period)
    191 /Key
    192 'Key (under ESC)
    219 [Key
    220 /Key
    221 ] Key
    222 'Key (quotation marks)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.