KeyPress Logger

This is a discussion on KeyPress Logger within the C++ Programming forums, part of the General Programming Boards category; Hi, i am trying to write a program which captures key press's from the keyboard so that i can work ...

  1. #1
    Registered User mmarab's Avatar
    Join Date
    Jul 2007
    Posts
    30

    Talking KeyPress Logger

    Hi,

    i am trying to write a program which captures key press's from the keyboard so that i can work out which key is pressed more than any other.

    I have never done anything like this before, my C++ skills are getting better, but i just need someone to point me in the right direction. I am a strong believe in doing things myself so i am not looking for a code handout, but someone just to show me the light at the end of the tunnel.

    Any help would be great.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    i am trying to write a program which captures key press's from the keyboard so that i can work out which key is pressed more than any other.
    So that's all you want to do? Okay . . .

    You could search for "keylogger". You'll probably find that most of the threads relate to the illegal applications of keyloggers, but some don't, such as this one: http://cboard.cprogramming.com/searc...earchid=672277
    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.

  3. #3
    Registered User mmarab's Avatar
    Join Date
    Jul 2007
    Posts
    30
    Thanks dwk,

    Ok looking at most of them forum posts, people will probably be thinking this is a keylogger. Maybe i should explain the enviroment this will be used in. Basically, i have a crap old computer which connects to the internet, my project involves finding the most commonly used websites and key strokes people use. Although people who will be involved in this project are family and friends. I have no intention of screwing them over, it will only count the keys press and increment a number not store any textual information. plus they will only be surfing the net each for a max 10 mins each and ten people have to do it. Then i use the numbers from the test. Thats IT!

    Just didnt want anyone to get the arse with me.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Oops, I meant to link to this thread. Keyloggers (none rule breaking)

    Why do you want to do this? I'm just curious.
    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.

  5. #5
    Registered User mmarab's Avatar
    Join Date
    Jul 2007
    Posts
    30
    Well basically i have paired with a another student who does media, and someone that does physiology. My media friend has created a short film which takes 10 mins to watch about different events, celebs all that kind of crap. My physiology has create some flash cards sequences and stuff (actually i dont have a clue what she is doing), then we unleash them for 10 minutes to the net to see what they remember and what websites they went to, keyboard strokes, the order of websites. Anyway its more complex than that but i am just trying to give you an idea of what we are doing. Its carries no marks, its for a free competention, you win book vouchers or some crap.

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Sounds like fun. Good luck.

    Oh yes, BTW: you might find that a screen video capturing program might be useful, like Taksi: http://taksi.sourceforge.net/

    Taksi basically takes many screenshots in quick succession (aiming for 5 FPS by default, but you can change it), which it then saves as a video. If you don't turn down the quality you take up hard drive space pretty quickly, though.
    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.

  7. #7
    Registered User
    Join Date
    May 2007
    Posts
    21
    whatpulse.org

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    To expand, whatpulse.org appears to be a site devoted to a program which logs keypresses.

    http://forums.whatpulse.org/showthread.php?t=4026
    http://forums.whatpulse.org/showthread.php?t=2629
    Download it here: http://whatpulse.org/downloads/
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (MFC, Visual C++) Keypress Detection in a dialog...
    By guitarist809 in forum Windows Programming
    Replies: 4
    Last Post: 08-31-2008, 02:13 PM
  2. Simulating keypress
    By Scarvenger in forum Windows Programming
    Replies: 21
    Last Post: 02-07-2008, 04:38 PM
  3. Detecting keypress
    By dandago in forum C Programming
    Replies: 4
    Last Post: 06-10-2007, 10:34 AM
  4. ahhh help....rapid keypress detection
    By technoXavage in forum Game Programming
    Replies: 1
    Last Post: 12-18-2003, 01:00 PM
  5. detecting keypress
    By lithium in forum C++ Programming
    Replies: 3
    Last Post: 02-16-2003, 01:10 AM

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