key presses

This is a discussion on key presses within the Windows Programming forums, part of the Platform Specific Boards category; sorry for already asking this but i am trying to make my prog read key presses even when the prog ...

  1. #1
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62

    Angry key presses

    sorry for already asking this but i am trying to make my prog read key presses even when the prog is not active. I have tried keyboard procs but to make a global hook i will need to make extra dlls which i dont want to do. Are there any other methods of scanning for key presses?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    If you want system wide keylogging, you will need a dll........

  3. #3
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    well really i just want it during a game. Can i just get the keybaord hook with the game? Oh yeah and what is all this thread business about?

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    >>well really i just want it during a game. Can i just get the keybaord hook with the game?

    Yes you can hook your process without a dll.....but only yours


    >>Oh yeah and what is all this thread business about?


  5. #5
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    well when i register a hook it says i have to specify a thread.

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by cppdude
    well when i register a hook it says i have to specify a thread.
    Only if you wish to hook a specific thread....you can pass NULL for this if you want

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21