Setting Num Lock and Caps Lock key states 
Author Message
 Setting Num Lock and Caps Lock key states

Anyone know how to?  There is the following declaration, but how is it used?

Declare Function SetKeyboardState Lib "user32" Alias "SetKeyboardState"
(lppbKeyState As Byte) As Long

This is for VB5.

Sat, 15 Sep 2001 03:00:00 GMT  
 Setting Num Lock and Caps Lock key states
From MSDN:

Because the SetKeyboardState function alters the input state of the calling
thread and not the global input state of the system, an application cannot use
SetKeyboardState to set the NUM LOCK, CAPS LOCK, or SCROLL LOCK indicator
lights on the keyboard.

see utana's VB algorithm lab

Sat, 15 Sep 2001 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. GetKeyState for Caps Lock or Num Lock...

2. Setting Caps, Insert and Num Lock programmatically

3. Key State Control (Num Lock Status)

4. disabling num, caps, and scroll lock

5. How do I detect Caps/Num lock?

6. Checking And Changing Num Lock State

7. Num Lock state?

8. Caps Lock state and Status Bar

9. How to check the Caps Lock state

10. CAPS LOCK state from API

11. HELP: Lock on Num Lock?

12. Shift Lock/Num Lock


Powered by phpBB® Forum Software