|
-
Mar 1st, 2005, 08:24 AM
#1
Thread Starter
Junior Member
Help need in getting keyboard events
Hi,
I need to know how i can get whether the CAPS lock is on or off.
the GetKeyState(VK_CAPITAL) is not returning me proper value, if the caps lock is toggled between the consequtive excecution of this function.
Same thing i want to about the shift key. how can i get whether its pressed or not. I am running the VB application in background so i can use only win32 apis not any keypress event of VB.
Thanks,
Sachin
-
Mar 1st, 2005, 05:05 PM
#2
-
Mar 2nd, 2005, 07:36 AM
#3
Thread Starter
Junior Member
Re: Help need in getting keyboard events
No, that is not returning the proper value. that function checks only if there is a change in the state of that key from the last time this fuction is called. so if you change the key state multiple times between the two exceution of this function it will not return a correct value.
you can validate this by putting the function in a timer.
-
Mar 2nd, 2005, 06:21 PM
#4
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
|