Record keyboard input

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  ?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rushtoshankarSr Manager Software DevelopmentCommented:
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.
jsquadrosAuthor Commented:
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.


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.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jsquadrosAuthor Commented:

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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.