|
-
Oct 17th, 2008, 05:15 AM
#1
Thread Starter
Addicted Member
[2008] Check if all keys on the keyboard are released?
Hi guys,
I'm using an API in order to "catch" keys when my application is minimized, but I have a problem...
I want to check if all of the keyboard keys are released, I haven't found an option to do it,
I'm looking for something like:
Code:
If Keyboard.AllKeysUp then
Blablalbbal
End if
I know it sounds too stupid but I want to create an option to "catch" hotkeys, so I need a function
that will check if all keys are up, as I might said in previous threads I use one of the API's that
one of the users in this forum gave me (Thank you very much...!) this is the API:
http://ih4x.wordpress.com/2008/05/05...d-hook-global/
and no, I'm NOT making a keylogger... so please don't think it's for tracking someone stuff and using it for any purpose...
I used another way to check the keys, I made a counter, I declared a varibale as integer that for each key down it will increase by one count +=1 and for each key up count -=1 so if Count=0 all keys are up... but this is not working right for some reason, so I have to use a function similar to what I have wrriten up...
Thanks!
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
|