>
This sounds like a hardware problem.>
>Tore,
>
>Hmmm... you know what? It works on a full keyboard.
>
>But since my app only accepts numeric response.. the client got a USB numeric keypad to minimize space requirements.
>
>Could it be that NUMLOCK() does not apply or work on USB numeric keypads?
>
>Dennis
I'm curious. Does the windows 32 api keybd_event and GetKeyState work?
DECLARE keybd_event IN user32;
SHORT bVk,;
SHORT bScan,;
INTEGER dwFlags,;
INTEGER dwExtraInfo
#DEFINE VK_NUMLOCK 144
IF ! NUMLOCK()
= keybd_event(VK_NUMLOCK, 0, 2, 0)
= keybd_event(VK_NUMLOCK, 0, 0, 0)
ENDIF
I'm also curious about the USB numeric keypad. Isn't it always on?
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"