views:

799

answers:

5

Whats a general purpose key logger that I can use to detect keys for debugging and testing purposes? Preferably, I can hit a record button and a stop button and it will display a text file with all keys pressed during that time. Obviously, it doesn't have to be a super stealthy logger which secretly emails a anonymous account every week.

A: 

For programming and keylogging, I've had a lot of luck with Perfect Keyboard Std/Pro. It is a very good bit of software to help enter blurbs of code, or record a series of keys and help you re enter them if or when needed.

Brian
same problem. Not low level enough to record basic key presses. It only works in programs like firefox, not custom applications.
aramadia
+3  A: 

For X11, see GNU xnee. It is capable of recording and playing back both keyboard and mouse input actions.

On Windows, AutoHotKey supports recording and playing back keyboard macros. It's actually quite a powerful scripting solution in all.


PyKeylogger is a free open source keylogger written in the python programming language, available under the terms of the GNU General Public License. I threw it together one day after not being able to find a simple and trustworthy (as measured by the availability of source code) keylogger for windows, and it sort of snowballed from there. It is currently available for Windows (NT/2000 and up), and Linux (using Xlib, so won't work on the console).

I'm not very familiar with this tool (never used it before, found it just now) but it sounds like it could do what you want, or be easily modified to do what you want?

ephemient
unfrotunately, autohotkey doesn't record keys that doesn't actually print text into a textbox. I guess I need something more low level.
aramadia
pyKeyLogger can't be hidden in task manager.
Junior Mayhé
@Junior: As stated in the question, OP does not require a stealthy solution.
ephemient
+1  A: 

Autohotkey comes with a fancy tool called AutoScriptWriter, which can record keypresses and mouse clicks, regardless of where they take place. It doesn't produce pretty output, but it works ...

Output from recorded key-strokes:

Send, {ALTDOWN}{ALTUP}
Send, {TAB}{TAB}
Send, jfhdls
Send, 176 177 178 175 174 179

176 177 175 175 174 179 are multimedia keys on my Logitech G15 keyboard

phalacee
After OP's comments, I think it's possible that aramadia is having problems with keys like the extended multimedia on some modern keyboards, which AHK doesn't (can't?) capture.
ephemient
@ephemient: AutoHotKey itself won't can't capture those, but as my answer says, a program that comes with it can - at least it works on my Logitech G15 keyboard ... I testing it prior to posting my answer, and have tested it again.
phalacee
That is, I tested it prior ... I need a grammar checker ...
phalacee
+4  A: 

What you are looking for are application and test automation tools. They generally are not called key loggers. There are many of these tools available. Here are a some:

Foredecker
A: 

I've not used any of the software in the posts above,but as to keylogger ,this one is qiute smart as I know.

Sienna Johansson