|
-
Aug 22nd, 2000, 03:17 AM
#1
Thread Starter
Junior Member
Hi everybody,
I'm trying to detect if the user used Ctrl+c to interrupt lengtly operations like copying and unzipping files. I tried to use the examples from the microsoft knowlegde base. But it simply doesn't work.
I have to detect the keycombination, even if the focus is of the program.
Anyone got any ideas??
Thanks
-
Aug 22nd, 2000, 01:55 PM
#2
Hyperactive Member
Did you try GetKeyState() API? This will tell if those keys are pressed down. I have no resources at the moment perhaps someone here could offer you an example with the key names.
-
Aug 22nd, 2000, 02:02 PM
#3
Monday Morning Lunatic
Megatron posted an example of using GetKeyStateAsync() somewhere...but check out VK_CONTROL or similar.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|