tags:

views:

24

answers:

1

Hey, I am creating a keylogger to monitor my PC and I want to have a key combination that shuts the keylogger off or turns on the user interface, not sure yet. But the problem is that I can't figure out how to check if two or three buttons are being pressed at the same time ? How do I do that ? Here's my source so far : http://paste.pocoo.org/show/232233/

+1  A: 

You should be able to get a keyup/keydown event, rather than a keypress event.

Then all you do is keep a list of buttons that are down, and remove the button when keyup is called.

Wayne Werner