Record keyboard input

Posted on 2004-11-05
Last Modified: 2010-04-17
Hello gurus out there

I wonder if there is a way to monitor keyboard input in a windows 2000 environment. I explain:
Right now, as I am typing this message, will it be possible to simultaneously save this input to a file  ?


Question by:jsquadros
    LVL 6

    Expert Comment

    Yes you can .

    Try using these functions.

    SetWindowsHookEx -> windows API

    KeyboardProc -> your function name.

    CallNextHookEx -> call this function in your function.

    after finishing your work, call UnhookWindowsHookEx function.

    I hope you can develop a code based on these informations.

    Author Comment

    YOu might be definitely right, but I am completely ignorant as far as this sort of programming is concerned.
    Will you please explain in detail how (if) would I be able to (after finishing this message) browse a trace file and see exactly in that file what I have been typing here.


    LVL 3

    Accepted Solution

    Actually, you have to create a program that will hook the keyboard input. It is not just a setting in control panel or whereever else, there must be a special software running.

    Some links to kb capturing shareware can be found here:

    There are also many commerical products, e.g.

    For other links try Google: "keyboard capture" download

    But always remember, that capturning keystrokes of other person is in general illegal.



    Author Comment


    Thanks for your comment, that's exactly what I was looking for.


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    character entities and entity references in XML 17 82
    wefewf 2 28
    wordlen challenge 3 30
    firstChar challenge 13 57
    This is an explanation of a simple data model to help parse a JSON feed
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now