Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i recording of everything that is entered from the keyboard using `python`
Posted

I found this :

http://www.python-forum.org/pythonforum/viewtopic.php?f=1&t=10998[^]

Python is a weird language to be doing keylogging in....
 
Share this answer
 
As CodeProject is mostly a Windows centric site I assume that you are looking for a solution that works on Windows - so have a look at: PyHook[^]

Description from the project site:
pyHook is a python wrapper for global input hooks in Windows. Specifically it wraps the Windows SetWindowsHookEx API function using low-level keyboard (WH_KEYBOARD_LL) and mouse (WH_MOUSE_LL) hooks.

The pyHook package provides callbacks for global mouse and keyboard events in Windows. Python applications register can event handlers for user input events such as left mouse down, left mouse up, key down, etc. and set the keyboard and/or mouse hook. The underlying C library reports information like the time of the event, the name of the window in which the event occurred, the value of the event, any keyboard modifiers, etc. Events can be logged and/or filtered.


Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Feb-12 16:35pm    
Never knew that someone would do such a weird thing in Python... :-)
My 5.
--SA
Espen Harlinn 9-Feb-12 16:39pm    
Thank you, Sergey - it appears that at least a few people has required this functionality :)
thatraja 9-Feb-12 23:15pm    
5!
Espen Harlinn 10-Feb-12 3:24am    
Thank you, thatraja :)
VJ Reddy 12-Jun-12 11:10am    
Good answer. 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900