Thread: Can I keep track of key events at my browser?

  1. #1
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694

    Can I keep track of key events at my browser?

    Don't worry, I don't want to hack anyone.
    I have finished exams and the 2nd semester begins in more than 10 days, so I am playing around...

    So, I know how to code an application to keep track of key events, but I do not know how I can make it run in parallel with my web browser (chrome or firefox). Actually, since this is my 1st attempt, which browser is more suitable for this "game" of mine?

    As I have it in my mind:
    I start my browser and the program I have made to keep track of key strokes.
    I am surfing around, typing blah blah blah.
    At the end of surfing, I would like to have somewhere stored all this information. (in a .txt probably?).
    Then, I open the .txt and see the data..

    Can I really do such thing?

    EDIT: I could just print them in the console log instead of a txt. Of course, I am would be happy if I could get just the codes of the keys.

    The question: Can I have the program running in another tab, but collecting key events that happen in other tabs?
    Last edited by std10093; 02-07-2013 at 03:26 PM.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Or maybe, I should just search for a keylogger? But that way it won't be fun..
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You may want to look into how to make extensions for the browsers you wish to use. Perhaps there might be answers in such things.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Thanks for the answer
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. On the right track?
    By JayCee++ in forum C++ Programming
    Replies: 17
    Last Post: 10-07-2011, 01:30 PM
  2. Embed browser dont receives mouse "click" events
    By aniquilator in forum Windows Programming
    Replies: 2
    Last Post: 01-25-2010, 07:41 AM
  3. Am I on the right track
    By romeoz in forum C++ Programming
    Replies: 12
    Last Post: 07-07-2003, 10:10 PM
  4. not on right track
    By Dena in forum C++ Programming
    Replies: 1
    Last Post: 02-23-2002, 07:03 PM