Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. catch keystroke

catch keystroke

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    I know I've read it somewhere here, but I can't seem to find it (now that I'm looking for it). I want to catch a keystroke outside of the program (like, if a different program is focused and I want to hit a key, like F12 or something, and have my program act on it while minimized). Can someone point me in the right direction please?

    -Daniel Typing too fast fro my owngood

    S 1 Reply Last reply
    0
    • L likefood

      I know I've read it somewhere here, but I can't seem to find it (now that I'm looking for it). I want to catch a keystroke outside of the program (like, if a different program is focused and I want to hit a key, like F12 or something, and have my program act on it while minimized). Can someone point me in the right direction please?

      -Daniel Typing too fast fro my owngood

      S Offline
      S Offline
      sharpiesharpie
      wrote on last edited by
      #2

      well, google 'global hooks' here's some useful articles: http://www.codeproject.com/csharp/globalhook.asp http://support.microsoft.com/kb/318804

      L 1 Reply Last reply
      0
      • S sharpiesharpie

        well, google 'global hooks' here's some useful articles: http://www.codeproject.com/csharp/globalhook.asp http://support.microsoft.com/kb/318804

        L Offline
        L Offline
        likefood
        wrote on last edited by
        #3

        You rock. Thank you!

        -Daniel Typing too fast fro my owngood

        S 1 Reply Last reply
        0
        • L likefood

          You rock. Thank you!

          -Daniel Typing too fast fro my owngood

          S Offline
          S Offline
          sharpiesharpie
          wrote on last edited by
          #4

          No problem, I'm glad i could help (and now i wish someone could answer my thread >_<)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups