|
-
June 2nd, 1999, 01:50 PM
#1
Key State
My small app needs to know whether the Caps Lock key is on or off. Various bits of code using GetKeyboardState etc all work whilst the project is running in VB. If I open Notepad and click in its window instead of in my vb code window, the app seems unable to detect the Caps Lock state any more. Any ideas?
Voice Recognition, Microphones, and Text-To-Speech.
Products, Support, and International Sales.
www.talking.co.uk
-
June 6th, 1999, 09:53 AM
#2
Re: Key State
I believe you have to subclass the keystroke capture of keyboard state outside the VB window as you would do for mouse events.
Gordito
-
June 7th, 1999, 01:14 AM
#3
Re: Key State
Try creating a Hook procedure for keybaord.
A hook procedure is system-wide.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|