C Voice keyboard hooks and usage analog keyboard

Source: Internet
Author: User
Tags 0xc0

#include <windows.h>void main () { /*  function prototype  void keybd_event (&NBSP;BYTE&NBSP;BVK,  BYTE bScan, DWORD dwFlags, DWORD dwExtraInfo ); */  // Parameter 1 keyboard represents 16 binary virtual key codes (compact 2013) Helpful  //VK_LWIN // 0x5B //  Left windows key on a microsoft natural keyboard. // //keybd_ Event (0x5b, 0, 0, 0);  //Other default save line  //keybd_event (0x5b, 0, 2, 0);  // The delegate releases the button  //displays the desktop  //keybd_event (0x5b, 0, 0, 0);  //keybd_event (' D ',  0, 0,  0);  //keybd_event (' D ',  0, 2, 0);  //keybd_event (0x5b, 0,2, 0);.  //Open Notepad  keybd_event (0x5b, 0, 0, 0);  keybd_event (' R ',  0, 0, 0);  keybd_event (' R ',  0, 2, 0);  keybd_event (0x5b, 0,2, 0);  Sleep (1000);  keybd_event (' N ',  0, 0,  0);  keybd_event (' N ',  0, 2, 0);  keybd_event (' O ',  0, 0, 0);  keybd_ Event (' O ',  0, 2, 0);  keybd_event (' t ',  0, 0, 0);  keybd_event (' t ',  0, 2, 0);  keybd_event (' E ',  0,0, 0);  keybd_event (' E ',  0, 2, 0);  keybd_event (' P ',  0, 0, 0);  keybd_event (' P ',  0, 2, 0);  keybd_ Event (' A ',  0, 0, 0);  keybd_event (' A ',  0, 2, 0);  keybd_event (' D ',  0,0, 0);  keybd_event (' D ',  0, 2, 0);  sleep ( keybd_event); 0x0D, 0,  0, 0);  keybd_event (0x0d, 0, 2, 0);  sleep (+);  keybd_event (0x14,  0, 0, 0);  keybd_event (0x14, 0, 2, 0);   keybd_event (' H ',  0,  0, 0);  keybd_event (' H ',  0, 2, 0);  keybd_event (' E ',  0, 0, 0) ;  keybd_event (' E ', &N sleep (bsp;0, 2, 0);  keybd_event (' l ',  0, 0, 0);  keybd_event (' l ',  sleep ( 0, 2, 0);  keybd_event (' l ',  0, 0, 0);  keybd_event (' l '); ,  0, 2, 0);  sleep (+),  keybd_event (' O ',  0, 0, 0);  keybd_event (' O  sleep ( 0, 2, 0);  keybd_event (' W ',  0, 0, 0);  keybd_event (' W ',  0, 2, 0);  sleep (+),  keybd_event (' O ',  0, 0, 0);  keybd_event ( ' O ',  0, 2, 0);  sleep (+);  keybd_event (' R ',  0, 0, 0);  keybd_event (' R ',  0, 2, 0);  sleep (+);  keybd_event (' D ',  0, 0, 0);  keybd_ Event (' D ',  0, 2, 0);  sleep (+);  keybd_event (0x0d, 0, 0, 0);  keybd_event (0x0d, 0, 2, 0);}

Feel good to give a comment and praise thank you

Virtual Key Codes (Compact 2013)

Send Feedback on the topic to Microsoft.

View This topic online in your default browser.

3/28/2014


The following table shows the symbolic constant names, hexadecimal values, and keyboard equivalents for the virtual key Co Des used by the Windows Embedded Compact operating system. The codes is listed in numeric order. To create a hot key, you can combine any of the codes with a modifier key.

Virtual Key Codes

Symbolic constant

Hexadecimal value

Mouse or keyboard equivalent

Vk_lbutton

0x01

left mouse button.

Vk_rbutton

0x02

right mouse button.

Vk_cancel

0x03

Control-break processing.

Vk_mbutton

0x04

Middle mouse button on a Three-button mouse.


0x05-0x07

Undefined.

Vk_back

0x08

BACKSPACE key.

Vk_tab

0x09

TAB key.


0x0a-0x0b

Undefined.

Vk_clear

0x0C

CLEAR key.

Vk_return

0x0D

ENTER key.


0x0e-0x0f

Undefined.

Vk_shift

0x10

SHIFT key.

Vk_control

0x11

CTRL key.

Vk_menu

0x12

ALT key.

Vk_pause

0x13

PAUSE key.

Vk_capital

0x14

CAPS LOCK key.


0x15-0x19

Reserved for Kanji Systems.


0x1A

Undefined.

Vk_escape

0x1B

ESC key.


0x1c-0x1f

Reserved for Kanji Systems.

Vk_space

0x20

SPACEBAR.

Vk_prior

0x21

PAGE up key.

Vk_next

0x22

PAGE down key.

Vk_end

0x23

END key.

Vk_home

0x24

HOME key.

Vk_left

0x25

Left ARROW key.

Vk_up

0x26

Up ARROW key.

Vk_right

0x27

Right ARROW key.

Vk_down

0x28

Down ARROW key.

Vk_select

0x29

SELECT key.


0x2A

specific to OEM.

Vk_execute

0x2B

EXECUTE key.

Vk_snapshot

0x2C

PRINT screen key.

Vk_insert

0x2D

INS key.

Vk_delete

0x2e

DEL key.

Vk_help

0x2F

Help Key.


0x3a-0x40

Undefined.

Vk_lwin

0x5b

Left Windows key on a Microsoft Natural Keyboard.

Vk_rwin

0x5C

Right Windows key on a Microsoft Natural Keyboard.

Vk_apps

0x5d

Applications key on a Microsoft Natural Keyboard.


0x5e-0x5f

Undefined.

Vk_numpad0

0x60

Numeric Keypad 0 key.

Vk_numpad1

0x61

Numeric Keypad 1 key.

Vk_numpad2

0x62

Numeric Keypad 2 key.

Vk_numpad3

0x63

Numeric Keypad 3 key.

Vk_numpad4

0x64

Numeric Keypad 4 key.

Vk_numpad5

0x65

Numeric Keypad 5 key.

Vk_numpad6

0x66

Numeric Keypad 6 key.

Vk_numpad7

0x67

Numeric Keypad 7 key.

Vk_numpad8

0x68

Numeric Keypad 8 key.

Vk_numpad9

0x69

Numeric Keypad 9 key.

Vk_multiply

0x6A

Multiply key.

Vk_add

0x6b

Add key.

Vk_separator

0x6c

Separator key.

Vk_subtract

0x6d

Subtract key.

Vk_decimal

0x6e

Decimal key.

Vk_divide

0x6F

Divide key.

Vk_f1

0x70

F1 key.

Vk_f2

0x71

F2 key.

Vk_f3

0x72

F3 key.

Vk_f4

0x73

F4 key.

Vk_f5

0x74

F5 key.

Vk_f6

0x75

F6 key.

Vk_f7

0x76

F7 key.

Vk_f8

0x77

F8 key.

Vk_f9

0x78

F9 key.

Vk_f10

0x79

F10 key.

Vk_f11

0x7A

F11 key.

Vk_f12

0x7B

F12 key.

Vk_f13

0x7C

F13 key.

Vk_f14

0x7d

F14 key.

Vk_f15

0x7E

F15 key.

Vk_f16

0x7F

F16 key.

Vk_f17

0x80

F17 key.

Vk_f18

0x81

F18 key.

Vk_f19

0x82

F19 key.

Vk_f20

0x83

F20 key.

Vk_f21

0x84

F21 key.

Vk_f22

0x85

F22 key.

Vk_f23

0x86

F23 key.

Vk_f24

0x87

F24 key.


0x88-0x8f

Unassigned.

Vk_numlock

0x90

Num LOCK key.

Vk_scroll

0x91

SCROLL LOCK key.

Vk_lshift

0xA0

Left SHIFT.

Vk_rshift

0xa1

Right SHIFT.

Vk_lcontrol

0xa2

Left CTRL.

Vk_rcontrol

0xa3

Right CTRL.

Vk_lmenu

0xa4

Left ALT.

Vk_rmenu

0xa5

Right ALT.


0xba-0xc0

specific to OEM; Reserved. See following tables.


0xc1-0xda

Unassigned.


0xdb-0xde

specific to OEM; Reserved. See following tables.

Vk_off

0xDF

Used to power the device on and off. No keyboard equivalent.


0xe1-0xe4

specific to OEM.


0xe5

Unassigned.


0xe6

specific to OEM.

Vk_packet

0xE7

Used to pass Unicode characters as if they were keystrokes. If Vk_packet is used with SendInput and then the Unicode character to be delivered should are placed into the lower bits of The scan code. If a keyboard message is removed from the message queue and the virtual key are Vk_packet, then the Unicode character would Be the upper of the lparam.


0xe8

Unassigned.


0xe9-0xf5

specific to OEM.

Vk_attn

0xf6

ATTN key.

Vk_crsel

0xf7

Crsel key.

Vk_exsel

0xF8

Exsel key.

Vk_ereof

0xf9

Erase EOF key.

Vk_play

0xFA

PLAY key.

Vk_zoom

0xFB

ZOOM key.

Vk_noname

0xFC

Reserved.

Vk_pa1

0xFD

PA1 key.

Vk_oem_clear

0xFE

CLEAR key.

OEMs should make special note of the VK key ranges reserved for specific OEM use:2a, Db-e4, E6, and E9-f5.

In addition to the virtual key assignments in the previous table, Microsoft have assigned the following specific OEM Virtua L keys.

Symbolic constant

Hexadecimal value

Mouse or keyboard equivalent

Vk_oem_scroll

0x91

None.

Vk_oem_1

0xBA

";:" for US.

Vk_oem_plus

0xBB

"+" any country/region.

Vk_oem_comma

0xBC

"," any country/region.

Vk_oem_minus

0xBD

"-" any country/region.

Vk_oem_period

0xBE

"." Any country/region.

Vk_oem_2

0xBF

"/?" for US.

Vk_oem_3

0xC0

"' ~" for US.

Vk_oem_4

0xDB

"[{" For US.

Vk_oem_5

0xDC

"\|" for US.

Vk_oem_6

0xDD

"]}" for US

Vk_oem_7

0xDE

"'" "for US.

Vk_oem_8

0xDF

None. By default, this is equivalent to Vk_off.

Vk_oem_ax

0xe1

Ax key on Japanese ax keyboard.

vk_oem_102

0xe2

"<>" or "\|" on RT 102-key keyboard.

For East Asian Input Method Editors (IMEs), the following additional virtual keyboard definitions must is observed.

Symbolic constant

Hexadecimal value

Description

Vk_dbe_alphanumeric

0x0f0

Changes the mode to alphanumeric.

Vk_dbe_katakana

0x0f1

Changes the mode to katakana.

Vk_dbe_hiragana

0x0f2

Changes the mode to hiragana.

Vk_dbe_sbcschar

0x0f3

Changes the mode to Single-byte characters.

Vk_dbe_dbcschar

0x0f4

Changes the mode to Double-byte characters.

Vk_dbe_roman

0x0f5

Changes the mode to Roman characters.

Vk_dbe_noroman

0x0f6

Changes the mode to Non-roman characters.

Vk_dbe_enterwordregistermode

0x0f7

Activates the Word Registration dialog box.

Vk_dbe_enterimeconfigmode

0x0f8

Activates a dialog box for setting up an IME environment.

Vk_dbe_flushstring

0x0f9

Deletes the undetermined string without determining it.

Vk_dbe_codeinput

0x0fa

Changes the mode to code input.

Vk_dbe_nocodeinput

0x0fb

Changes the mode to No-code input.

OEMs should not use the unassigned portions of the virtual key (VK) mapping tables. If manufacturers require additional VK mappings, they should reuse some of the current manufacturer-specific and VENDOR-SP Ecific assignments.


C Voice keyboard hooks and usage analog keyboard

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.