Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyHook for Python 3.3

I am coding a simple keylogger using Python. I hope to use pyHook to capture keyboard events.I couldn't find any packages of pyHook for python 3.3 which I have installed. Is there any other module for python 3.3 which provides similar functionalities?

like image 819
Deepal Avatar asked Apr 10 '13 08:04

Deepal


People also ask

How do you get pyHook?

You can download the pyHook library from http://sourceforge.net/projects/pyhook/files/pyhook/1.5.1/ and install it easily following the on-screen instructions. Make sure that you do not have another Python instance running in the background or you will get an error during installation.

What is pyHook?

The pyHook package provides callbacks for global mouse and keyboard events in Windows. Python applications register 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.


1 Answers

A quick google turned up this site, which has unofficial installers for pyHook 1.5.1 (and a whole lot of other packages) for Python 3.3. I haven't tested it, but it seems worth trying. And there are a couple of other similar repositories on the first page of Google results if this one doesn't work.

I also found a few forks on github, like this one, which have fixes for Unicode bugs in 3.x. I have no idea if those bugs have been fixed in the main pyHook project (or made it into the 1.5.1 release), but if you run into problems, you may want to take a look.

You'd have a lot more options if you installed a compiler (MinGW and/or Visual Studio Express) and used easy_install or pip to install packages automatically, building them from source if necessary. Then you wouldn't need to search for binary installers for everything.

like image 58
abarnert Avatar answered Oct 08 '22 18:10

abarnert