views:

23

answers:

0

I have a simple application that controls my media player with a combination of key presses. Unfortunately however it requires a ctrl key so rather than using postmessage I have to use a keyboardevent.

This can by quite annoying when typing as you can imagine (you press p and all of a sudden the print dialogue box opens). So I am looking to 'damage control' the situation by ignoring user input for the milliseconds that it does its stuff. That is Unless anyone has a better solution (and no there is no other way to control the media player - unfortunately).

So how can I make the system ignore user keyboard presses. The only other solution I can think of is to record the keys pressed but make the system ignore them, let my program do its stuff and then send the key strokes that were pressed.