PDA

Click to See Complete Forum and Search --> : Creating HotKeys


corey
Jun 9th, 2000, 03:54 PM
When I create a hot key for each of the forms in my program only one of the hot keys wordks the key sequences and the corresponding codes passed to windows are:

SHIFT M &h16D
SHIFT E &H145
SHIFT V &H176
SHIFT N &H16E

Am I using the right hex values for each of the key sequences? What else might I be doing wrong?

Thanxs in Advance Corey

Crazy D
Jun 13th, 2000, 03:48 PM
The virtual keycodes for a to z and A to Z are the Ascii values, so:
M = &H4D
E = &H45
V = &H56
N = &H4E

(you can find them in the winuser.h if you have installed VC++, VK_ constants)