SetKeyboardState API Call 
Author Message
 SetKeyboardState API Call

Using the SetKeyboardState API call to set capslock on and off. This works
on Windows'9x, but not with XP. Does anyone know how to do this in XP?
TIA
HK


Sun, 12 Dec 2004 22:14:26 GMT  
 SetKeyboardState API Call
Found the problem!
It did work, just the indicator on the keyboard did not reflect the change.
Used the keybd_event proc, works fine.
HK


Quote:
> Using the SetKeyboardState API call to set capslock on and off. This
> works on Windows'9x, but not with XP. Does anyone know how to do this
> in XP? TIA
> HK



Tue, 14 Dec 2004 21:33:36 GMT  
 SetKeyboardState API Call
Declare Function apiSetKeyboardState Lib "user32" Alias_
         "SetKeyboardState" (lppbKeyState As Byte) As Long

try using this, I haven't tested, sorry f fails

S. A. Hasnut
MCSD, CIW A
It Magnet
http://itmagnet.com.au

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Thu, 16 Dec 2004 18:07:21 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Problem using SetKeyboardState API call on Windows XP Pro

2. setkeyboardstate

3. SetKeyboardState to send Ctrl key combinations

4. Get/SetKeyboardState

5. setkeyboardstate

6. How to use SetKeyboardState function?

7. SetKeyboardState and caps lock

8. GetKeyState and SetKeyboardState

9. SetKeyboardState problem in NT

10. All about API calls DLL calls

11. so called secret api calls

12. Help! Calling commondlg with API calls

 

 
Powered by phpBB® Forum Software