Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Ensure NUMLOCKS is ON
Message
From
14/10/2010 22:57:29
 
 
To
14/10/2010 22:40:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01485529
Message ID:
01485551
Views:
48
TC,

With the code I have shown in the first message, it does not work on USB Numeric Keypads, but works well on our standard ones (those with letters on the left, number keys on the right).

However, I will the code you have shown me and let you know right away.

It will be great if it does. =)

Thanks
Dennis


>>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform