Results 1 to 3 of 3

Thread: Control + c

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Antwerp,Belgium
    Posts
    21

    Question

    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

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    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.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width