Thread: global keyboard hooks

  1. #1
    Registered Trademark
    Join Date
    Apr 2005
    Posts
    19

    global keyboard hooks

    can anyone tell me (or is there a site with a good tutorial on it) how to program a global keyboard hook?
    pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    6. Messages relating to cracking, (erroneously called "hacking" by many), copyright violations, or other illegal activities will be deleted.
    Keyloggers are almost always violations of privacy and are considered infringements of this.

    I noticed your recent thread about running applications in the background, and thought it a funny coincidence.

  3. #3
    Registered Trademark
    Join Date
    Apr 2005
    Posts
    19
    first of all, running programs in the background is something my spy sweeper can do (though, yes, I realize viruses can too). second of all, what is wrong with a simple keyboard hook? it may be global, but only on my computer. and if i was going to hack the internet I'd have used a language like assembly or some of microsoft's languages. i know this is win32, but come on, I'm trying to work a project here.
    pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I'm not stupid.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    what is wrong with a simple keyboard hook?
    Well, you could make the delete key launch a virus. Or something like that.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered Trademark
    Join Date
    Apr 2005
    Posts
    19
    and why the heck would i make a delete key launch a virus? I could simply make opening a process a virus launch.
    pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    If you can get a keylogger running on someone's computer, you might as well just launch the virus yourself, wouldn't you say?

    Fender Bender - save us all a lot of trouble and just go away. Your excuses are insulting, seriously.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Identifying mouse used with Global mouse hooks
    By Chillance in forum Windows Programming
    Replies: 4
    Last Post: 02-15-2009, 08:42 AM
  2. Windows Hooks for global mouse detection
    By JJFMJR in forum Windows Programming
    Replies: 8
    Last Post: 08-12-2008, 08:04 AM
  3. C++ Global Keyboard Hook
    By darknite135 in forum C++ Programming
    Replies: 4
    Last Post: 02-01-2008, 07:36 PM
  4. Do I need to use Keyboard Hooks to solve my problem?
    By BenPage in forum C++ Programming
    Replies: 3
    Last Post: 07-16-2005, 10:10 AM
  5. Detecting Keyboard Hooks
    By KinoCode in forum Windows Programming
    Replies: 2
    Last Post: 01-17-2003, 11:24 AM