Thread: Keyboard Event Listener

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    24

    Keyboard Event Listener

    How would I go about creating an event listener for the keyboard that can track key events in C? API functions or classes would be helpful. thanks

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Why do you want to do this, i.e., what is the bigger picture of what you are trying to do?

    Also, what is the operating system that you have in mind?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    24
    I want to make a keylogger that is smarter than a normal one for my network security class. We haven't learned how to create a listener like this before though and everything I searched didn't seem to work. I am running windows 7.

    Also, I would like to use a win32 console project if I can too.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Ah. Unfortunately, refer to item #6 of the forum guidelines:
    6. Messages relating to cracking, (erroneously called "hacking" by many), copyright violations, or other illegal activities will be deleted. Due to the overlapping boundaries of code with malicious intent, and other legitimate uses of it, the moderators will assess each potential infraction on a case by case basis.
    I suggest that you arrange for a consultation session with your instructor instead.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Oct 2011
    Posts
    24
    ugh..

  6. #6
    Registered User andrew89's Avatar
    Join Date
    Dec 2011
    Location
    Indiana, United States
    Posts
    80
    I believe this would fall under homework policy as well. I've been a member of a few sites like this one Matt, you're not very likely to come across a forum that will actually help you do that. Even if it is for class, it's a 'cover-our-own-butts' kind of thing.
    If, for some reason, I don't make any sense at all, it's highly likely that I've been up all night on some strange bender that isn't normal. I likely unarmed and far from dangerous. While I haven't been known to physically harm anyone or anything else, there have been unsubstantiated reports that I have driven others into both a hazy stupor as well as a blinding rage. Otherwise, I hope I helped.

  7. #7
    Registered User
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    375
    Even if it is for class, it's a 'cover-our-own-butts' kind of thing.
    Kind of.

    By helping the OP, you are helping anyone who googles for this same topic but has less admirable intentions. If I was denied all accountability, I still would refuse to help idiots learn to make keyloggers (not referring to OP, referring to people with malicious intentions).

  8. #8
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    At any rate, the OP can google for the info elsewhere.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simulating keyboard event on Windows xp
    By GOBLIN-85 in forum Windows Programming
    Replies: 5
    Last Post: 08-17-2009, 08:27 AM
  2. Multiple Threads, One listener.
    By PING in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-27-2009, 12:19 PM
  3. How to Get Keyboard event????
    By Shidlingayya in forum C++ Programming
    Replies: 9
    Last Post: 12-18-2007, 01:14 PM
  4. multi-threaded listener
    By XX@nnX in forum Windows Programming
    Replies: 7
    Last Post: 02-25-2006, 05:05 AM
  5. keyboard event
    By SuperNewbie in forum Windows Programming
    Replies: 4
    Last Post: 06-10-2002, 06:51 PM