|
-
Nov 30th, 2008, 06:39 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] [2008] Best way to use GetAsyncKeyState
I'm creating a program that takes screen shots for the user, then automatically saves them into a folder for the user.
My program will remain in the system tray (Unless they close it).
I've got an option that allows the user to set their own Hotkeys for the program to trigger an event to record the screen shot.
Since this is not local to the program, the program needs to "Listen" for the user to press the keys they have entered in.
The problems are:
1. Will using a timer with a low interval to listen to for the keys use a lot of memory?
2. How can I listen for multiple keys at the same time? Such as "Ctrl + Shift + ~"?
I don't want to have to do a for loop and go through every keycode passing it through the GetAsyncKeyState API, so if there is an easier way, or another way to achieve my goal, then I would like to know please .
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
|