Thread: Recording Keystrokes

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    20

    Recording Keystrokes

    I have searched these forums and read multiple topics, but none really answered what I am searching for. So here goes. First of all, I am not trying to code a keylogger, so no flames please.

    What I want to do is write a program that will record how many times each key is pressed and print it by the corresponding character. For instance, if I hit j ten times, it should say "j: 10". The difficult part is, I want it to record keys pressed in any windows, not just the program it self. For instance, if I type "hello friend" in an instant message it should print h: 1, e: 2, l: 2 etc.
    I don't know if this is possible. Thank you for the help.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You just don't know what to search for.
    Win32 Hooks

    gg

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Welcome to the forums!

    You can do this in four simple steps:
    1. Get a web camera.
    2. Point it at the keyboard.
    3. Use OCR(optical character recognition) to map which key is which.
    4. Use motion detection to check which key is pressed.

    Another solution:
    1. Hire a person to watch you type and count the number of times each key is pressed.
    2. Possibly cheaper, train a monkey to do it, don't forget to feed it occasionally.

    Cut and paste:
    Instead of typing directly, create a big text file with a thousand instances of each character. When you need a character cut and paste it from the text file. At the end of the day count how many of each character you have used.

    (Or you could use Codeplug's suggestion if you don't like monkeys).
    Last edited by anonytmouse; 08-10-2004 at 07:40 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Decent TV recording software - ideas?
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-04-2009, 08:20 PM
  2. Fake keystrokes to another process
    By Nota in forum Windows Programming
    Replies: 20
    Last Post: 01-26-2009, 11:56 PM
  3. Sending keystrokes to another view
    By azeemanwer in forum C++ Programming
    Replies: 2
    Last Post: 08-28-2007, 10:41 AM
  4. CD Recording error
    By Shadow in forum Tech Board
    Replies: 17
    Last Post: 10-29-2002, 05:39 PM