我如何记录从键盘输入的所有内容 [英] how can i recording of everything that is entered from the keyboard

查看:310
本文介绍了我如何记录从键盘输入的所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何记录使用python从键盘输入的所有内容?

how can i recording of everything that is entered from the keyboard using `python`

推荐答案

我发现了这一点:

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

Python是进行键盘登录的一种奇怪的语言....
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....


由于CodeProject主要是一个以Windows为中心的网站,因此我认为您正在寻找一种适用于Windows的解决方案-因此,查看: PyHook [
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


这篇关于我如何记录从键盘输入的所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆