I want to decode the keyb. I tryes to to find the key pressed, with KeyEvent and it worked !
But how can I find out when multiples keyes are used. eg. Enter & Spacebare is pressed at the same time ??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
well, you will get KEY_PRESSED and KEY_RELEASED events for each key. If you get KEY_PRESSED events for both keys before getting any KEY_RELEASED events for either, then you'll know they are both down at the same time. You'll have to keep track of which keys you get these pressed and released events for...
Every time a key is pressed you will get a KEY_PRESSED event.  This event will be repeated every few hundred ms while the key is held down.

When the key is released you get a KEY_RELEASED event.

You need to keep track of the state of each key you are interested in to be able to detect multi-key presses.

Actually, you can be clever and detect the difference betweeen CTRL-ALT-DEL and ALT-CTRL-DEL.  This can be good for easter eggs and back doors etc.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
win32Author Commented:
Hmm year I found out just after i posted this message. But hey you will get the points anyway !! :-)
Jan LouwerensSoftware EngineerCommented:
Hey!! I wrote that answer first!!
Why did DrBeaker get the points??
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.