# Python3 fork of pyHook
## Introduction
Copy from [official site](http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=Main_Page):
> 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.
## Install
### Build with MSVC9
Make sure you are under "Visual Studio 2008 Command Prompt".
```
python setup.py build_ext --swig=path-to-swig.exe
pip install .
```
## About this fork
### Unicode
Fixed unicode decoding bug of window title. This bug may cause crashing on exit randomly. Usually with console output:
> TypeError: MouseSwitch() takes exactly 9 arguments (1 given)
or
> TypeError: KeyboardSwitch() takes exactly 9 arguments (1 given)
### Freezing
Original pyHook will cause "cannot find \_cpyHook module" error when using PyInstaller or cx-freeze to freeze python app. You need manually rename `pyHook._cpyHook` to `_cpyHook`. Now it's compatible with cx-freeze.
没有合适的资源?快使用搜索试试~ 我知道了~
pyhook_p3k编译完成版, 可以直接install
共31个文件
py:13个
txt:6个
project:1个
4星 · 超过85%的资源 需积分: 10 91 下载量 201 浏览量
2017-08-16
21:17:08
上传
评论 3
收藏 75KB RAR 举报
温馨提示
pyhook_p3k编译完成版, 环境为py3.4.3, win64, 解压完直接pip install . 即可完成模块安装
资源推荐
资源详情
资源评论
收起资源包目录
pyhook_py3k-master-compiled.rar (31个子文件)
pyhook_py3k-master
MANIFEST.in 211B
README.txt 821B
aa hook.py 2KB
example.py 1KB
pyHook.egg-info
PKG-INFO 1KB
SOURCES.txt 254B
top_level.txt 7B
dependency_links.txt 1B
cpyHook.i 9KB
cpyHook.py 3KB
HookManager.py 23KB
__init__.py 25B
CHANGELOG.txt 1KB
.project 360B
.cvsignore 50B
doc.py 293B
setup.py 2KB
.gitignore 57B
cpyHook_wrap.c 128KB
README.md 1KB
LICENSE.txt 1KB
build
temp.win-amd64-3.4
Release
_cpyHook.exp 607B
_cpyHook.lib 2KB
cpyHook_wrap.obj 44KB
lib.win-amd64-3.4
pyHook
aa hook.py 2KB
example.py 1KB
cpyHook.py 3KB
HookManager.py 23KB
__init__.py 26B
_cpyHook.pyd 25KB
doc.py 293B
共 31 条
- 1
资源评论
- yihuiyu1232018-03-22安装不上报错 没有io.h文件
- qq_402598022018-03-09还没使用上,再试试
- michaelgong2017-11-30还没用不知道行不行
烁GG
- 粉丝: 156
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功