All Projects → ethanhs → Pyhooked

ethanhs / Pyhooked

Pure Python hotkey hook, with thanks to pyHook and pyhk

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pyhooked

hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (-45.33%)
Mutual labels:  keyboard, hotkeys
LowLevelInput.Net
A thread safe and event driven LowLevelMouse and LowLevelKeyboard Hook
Stars: ✭ 32 (-78.67%)
Mutual labels:  hook, keyboard
react-use-hotkeys
React hook for creating simple keyboard shortcuts
Stars: ✭ 74 (-50.67%)
Mutual labels:  hook, hotkeys
Is Hotkey
Check whether a browser event matches a hotkey.
Stars: ✭ 211 (+40.67%)
Mutual labels:  hotkeys, keyboard
Hotkeys
➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
Stars: ✭ 5,165 (+3343.33%)
Mutual labels:  hotkeys, keyboard
Chordly
Chordly is a javascript library that may be used to detect and act upon key sequences entered by a user.
Stars: ✭ 14 (-90.67%)
Mutual labels:  keyboard, hotkeys
creviceapp
Multi purpose utility which supports gestures with mouse and keyboard.
Stars: ✭ 22 (-85.33%)
Mutual labels:  hook, keyboard
KeyBoardTool
Keyboard key detection software realized by Qt(Qt实现的键盘按键检测软件)
Stars: ✭ 35 (-76.67%)
Mutual labels:  hook, keyboard
Rbtray
A fork of RBTray from http://sourceforge.net/p/rbtray/code/.
Stars: ✭ 365 (+143.33%)
Mutual labels:  hook, keyboard
React Hotkeys
React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.
Stars: ✭ 279 (+86%)
Mutual labels:  hotkeys, keyboard
g910-gkey-macro-support
GKey support for Logitech G910 Keyboard on Linux
Stars: ✭ 85 (-43.33%)
Mutual labels:  keyboard, hotkeys
Neatinput
A .NET standard project which aims to make keyboard and mouse input monitoring easy on Windows and eventually Linux.
Stars: ✭ 89 (-40.67%)
Mutual labels:  hook, keyboard
react-keyboard-shortcuts
A declarative library for handling hotkeys based on explicit priority in React applications
Stars: ✭ 23 (-84.67%)
Mutual labels:  keyboard, hotkeys
Silence
A simple, clean macro recorder written in C#. Windows 10 compatible.
Stars: ✭ 29 (-80.67%)
Mutual labels:  hook, keyboard
Gohook
GoHook, Go global keyboard and mouse listener hook
Stars: ✭ 94 (-37.33%)
Mutual labels:  hook, keyboard
Kmk firmware
Clackety Keyboards Powered by Python
Stars: ✭ 132 (-12%)
Mutual labels:  keyboard
Cargo Husky
Setup Git hooks automatically for cargo projects with 🐶
Stars: ✭ 141 (-6%)
Mutual labels:  hook
Webpack Internal Plugin Relation
🔎 a tiny tool to show the relation of webpack internal plugins & hooks
Stars: ✭ 135 (-10%)
Mutual labels:  hook
Awesome Kinesis
Unofficial curated list of resources and references for Kinesis keyboard enthusiasts
Stars: ✭ 132 (-12%)
Mutual labels:  keyboard
Keyboardjs
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts.
Stars: ✭ 1,881 (+1154%)
Mutual labels:  keyboard

PyHooked: a pure Python hotkey module

Join the chat at https://gitter.im/IronManMark20/pyhooked

ATTENTION: pyhooked has been deprecated in favor of keyboard for new projects. This library is will no longer be supported. Please use one keyboard or one of the alternatives listed in Alternatives.

About -

PyHooked is a pure python keyboard and mouse hotkey module that allows the creation of hotkeys in all Python implementations that support sane implementations of ctypes. Instead of messing around with low level Windows calls, just give Hooked a callback and tell it to start listening.

PyHooked supports IronPython (2.7.5+, incl. 2.7.6 RC2), PyPy (5.3.1+) and CPython (Tested:2.7 x86,3.4 x64,3.5 x86; Most are likely to work) currently. It is pure Python, so porting to other Python implementations and versions should be very simple.

Usage -

Please see example.py for a basic example.

If you are using it with a UI library, please see example_gui.py

Please note that the wiki is out of date, and needs to be updated.

Installing

Just run $ pip install pyhooked or $ pip install git+https://github.com/ethanhs/pyhooked.git to get the latest version.

Alternatives -

pyHook and pyhk inspired the creation of this project. They are great hotkey modules too!

pywinauto is an incredibly useful Windows automation library that also includes among a plethora of tools, a hotkey detection library.

License -

PyHooked Copyright (C) 2015 Ethan Smith This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions; PyHooked is licensed under the LGPL v3, or at your choice, any later version. This program comes with the lgpl in a .txt file.

Pyhooked v0.8+ is based on work by Maxim Samokhvalov, who has my graditude for his work, and others in the PyWinAuto project, licensed under the BSD 3-clause license. The copyright notice is given below.

 Copyright (C) 2016 Maxim Samokhvalov
 Copyright (C) 2016 Vasily Ryabov
 Copyright (C) 2016 ethanhs
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

 * Neither the name of pywinauto nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

 * Neither the name of hooks.py nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 

#####As of v0.6, the module is LGPL licensed, not under the GPL.

####The Future - Here are a few things that I would like to see:

  • add support for args for called functions (DONE)
  • get mouse inputs (DONE)
  • support all scancodes found here (DONE)
  • Jython support
  • ????
    I am open to feature requests. If you have ideas, let me know (mr.smittye (at) gmail). Or, even better, make your changes and a pull request!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].