Discussion:
Numpad Enter vs. Keyboad Enter, different virtual key codes?
(too old to reply)
Lorn Davies
2005-09-03 00:25:32 UTC
Permalink
I'm working with a 3rd party program that takes hotkeys for data entry
into the program. I've created a little program to help with tedious
inputs, however have come across a stumbling block. All data inputed
into the program is culminated by hitting the Enter key on the
Numpad... if you hit the Enter key on the keyboard, it doesn't operate
as a hotkey. This is perplexing to me, as I've never seen a reference
to a virtual key code distinguishing the two Enter keys. Using the
regular VK_RETURN does not work. Does anyone have any ideas on this
issue, or how I might be able to get around it?

Thanks
Lorn
David Ching
2005-09-03 06:00:36 UTC
Permalink
Post by Lorn Davies
I'm working with a 3rd party program that takes hotkeys for data entry
into the program. I've created a little program to help with tedious
inputs, however have come across a stumbling block. All data inputed
into the program is culminated by hitting the Enter key on the
Numpad... if you hit the Enter key on the keyboard, it doesn't operate
as a hotkey. This is perplexing to me, as I've never seen a reference
to a virtual key code distinguishing the two Enter keys. Using the
regular VK_RETURN does not work. Does anyone have any ideas on this
issue, or how I might be able to get around it?
Handle WM_KEYDOWN. The nFlags parameter has bit 8 to indicate "Extended
key, such as a function key or a key on the numeric keypad (1 if it is an
extended key)."

-- David
http://www.dcsoft.com
Lorn Davies
2005-09-04 02:59:43 UTC
Permalink
Ok, great, thank you David... appreciate your help.

Lorn

Loading...