|
-
Nov 5th, 2007, 12:16 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Are any keys pressed?
I'm writing a program just now that will shutdown my computer if it hasn't been used in a while. Is there any code that will check to see if any keys are being pressed?
If a key is pressed I want to set a variable to 0. I have tried using GetAsyncKeyState but it didn't want to work in a loop. 
It doesn't matter what keys are pressed. Just if any are. 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
|