Thread: Catching All Keyboard Input

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    3

    Catching All Keyboard Input

    Can anyone explain what would be involved in writing a program that catches all input from the keyboard? So, if you're using windows even if your program was not the currently selected window you would be able to see what keys were pressed.

    Thanks; and if i'm not being clear please let me know and i'll try to elaborate/re-word.
    Last edited by nigma; 06-10-2005 at 11:58 PM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Like the world needs yet another kiddie wannabe with their own keylogger program....
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    3
    Why assume i'm a "script kiddie" who wants to write a keylogger and not someone who's interested in actually knowing what the difference is between getting input normally and getting all input regardless of what window is selected? And what's wrong with wanting to write a keylogger if you learn about what's happening behind the scenes?

    From your post stats you seem to be pretty active member of this community and if this is how you respond to someone who makes a simple inquiry on a topic someone here should know about I can only imagine how some of the newer members of this community act.

    And I can tell you with absolute certainty if you were to post over at phpdn where I moderate you would not recieve such a response.

  4. #4
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    Quote Originally Posted by nigma
    Can anyone explain what would be involved in writing a program that catches all input from the keyboard?
    hum.. a compiler, an IDE, good knowledge of win APi, knowledge of C, and above all ethics...

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    3
    There's no way to write a program to do this without having to make windows API calls?

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > There's no way to write a program to do this without having to make windows API calls?
    No there isn't.

    > Why assume i'm a "script kiddie" who wants to write a keylogger
    Balance of probability - new poster, wrong forum for your question (there's no C in your question), vague "how do I...." without having any real clue as to what's involved.
    And every other similar question like this has in fact turned out to be some lamer wanting to write a keylogger.

    > From your post stats you seem to be pretty active member of this community
    Well for those who actually want to learn the languages, and who actually post an honest attempt at trying, then I'm exceedingly helpful.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    I would have to agree with Salem, and the members reporting the post as another keylogger lamer.

    You do present all the classic signs we have seen so many times. Presumably if I logged onto your board as a first time poster and asked for advice on how to over flow a buffer and do an IE exploit, I'd be welcome would I?

    In the C forum, we help with C problems.

    Closed.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem with keyboard input
    By fighter92 in forum Game Programming
    Replies: 6
    Last Post: 03-20-2009, 09:41 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Using low-level keyboard for input
    By hdragon in forum C++ Programming
    Replies: 25
    Last Post: 12-24-2007, 02:13 PM
  4. Need help with keyboard input
    By wiramu in forum C++ Programming
    Replies: 2
    Last Post: 11-28-2003, 02:44 PM
  5. Catching bad input
    By Asmodan in forum C++ Programming
    Replies: 3
    Last Post: 05-28-2002, 06:24 PM