View Single Post
Old Apr 24th, 2008, 12:44 AM   #1
mshanks
Newbie
 
Join Date: Apr 2008
Posts: 2
Rep Power: 0 mshanks is on a distinguished road
Detecting key input

Hey all,

I'm quite new to programming so apologies if I'm being stupid asking this.

I've made a little Windows (xp) application using Visual Studio - one of the features I want for it is to detect key presses.

I have an integeter, counter, that starts at 100. I want it to decrement by 1 each time the user presses any key on their keyboard. After 1 minute, it will reset to 100.

It also needs to do this regardless of whether the application window is the active window or in the background.

If any one could point me in the right direction with this I'd greatly appreciate it.

Thanks,

- mshanks
mshanks is offline   Reply With Quote