A method of shielding Alt + F4 (with: keyboard common ASCII code)

xiaoxiao2021-03-14  223

Procedure tfrmenter.edtpwdkeydown (Sender: Tobject; var key: word; shift: tshiftstate); begin if (ssalt in shift) and (key = 115) THEN Key: = 0;

Attachment: Keyboard common ASCII code

ESC key VK_ESCAPE (27) Enter key: vk_return (13) Tab key: vk_tab (9) Caps Lock Key: vk_capital (20) Shift Key: vk_shift ($ 10) Ctrl Key: vk_control (17) Alt Key: vk_menu (18) Spacebar: VK_SPACE ($ 20/32) Randol: VK_BACK (8) Left logo key: vk_lwin (91) Right logo: VK_LWIN (92) mouse button shortcut: VK_APPS (93)

INSERT key: VK_INSERT (45) HOME button: vk_home (36) Pagedown: vk_prior (33) Endown: vk_ext (35) DELETE Key: vk_delete (46)

Direction key (←): vk_left (37) arrow keys (↑): vk_up (38) arrow keys (→): vk_right (39) arrow keys (): vk_down (40)

F1 key: VK_F1 (112) F2 key: VK_F2 (113) F3 key: VK_F3 (114) F4 key: VK_F4 (115) F5 key: VK_F5 (116) F6 key: VK_F6 (117) F7 key: VK_F7 (118) F8 Key: VK_F8 (119) F9 key: VK_F9 (120) F10 key: VK_F10 (121) F11 key: VK_F11 (122) F12 key: VK_F12 (123)

Num lock key: VK_NUMLOCK (144) keypad 0: vk_numpad0 (96) keypad 1: vk_numpad0 (97) keypad 2: vk_numpad0 (98) keypad 3: vk_numpad0 (99) keypad 4: vk_numpad0 (100) keypad 5: VK_NUMPAD0 (101) Keypad 6: VK_NUMPAD0 (102) Keypad 7: VK_NUMPAD0 (103) Keypad 8: VK_NUMPAD0 (104) Small keyboard 9: VK_NUMPAD0 (105) keypad.: Vk_decimal (110) keypad *: VK_MULTIPLY (106) keypad : vk_multiply (107) keypad -: vk_subtract (109) keypad /: vk_divid (111)

Pause Break: VK_PAUSE (19) Scroll Lock Key: VK_Scroll (145)

转载请注明原文地址:https://www.9cbs.com/read-129436.html

New Post(0)