{"id":13936781,"url":"https://github.com/emmatyping/pyhooked","last_synced_at":"2025-07-19T22:31:53.170Z","repository":{"id":30660606,"uuid":"34216307","full_name":"emmatyping/pyhooked","owner":"emmatyping","description":"Pure Python hotkey hook, with thanks to pyHook and pyhk","archived":true,"fork":false,"pushed_at":"2017-05-28T01:37:05.000Z","size":72,"stargazers_count":155,"open_issues_count":1,"forks_count":28,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-11-23T01:43:38.997Z","etag":null,"topics":["hook","hotkeys","keyboard","pyhook","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cs50/lectures","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emmatyping.png","metadata":{"files":{"readme":"readme.md","changelog":"change-log.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-19T17:23:16.000Z","updated_at":"2024-04-01T08:39:11.000Z","dependencies_parsed_at":"2022-08-30T06:41:49.683Z","dependency_job_id":null,"html_url":"https://github.com/emmatyping/pyhooked","commit_stats":null,"previous_names":["emmatyping/pyhooked"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmatyping%2Fpyhooked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmatyping%2Fpyhooked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmatyping%2Fpyhooked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmatyping%2Fpyhooked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmatyping","download_url":"https://codeload.github.com/emmatyping/pyhooked/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226686730,"owners_count":17666928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hook","hotkeys","keyboard","pyhook","python"],"created_at":"2024-08-07T23:02:59.330Z","updated_at":"2024-11-27T04:31:26.486Z","avatar_url":"https://github.com/emmatyping.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# PyHooked: a pure Python hotkey module\n\n\n[![Join the chat at https://gitter.im/IronManMark20/pyhooked](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/IronManMark20/pyhooked?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n### ATTENTION: pyhooked has been deprecated in favor of [keyboard](https://github.com/boppreh/keyboard) for new projects. This library is will no longer be supported. Please use one keyboard or one of the alternatives listed in Alternatives.\n\n#### About - \nPyHooked 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.\n\nPyHooked 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.\n\n#### Usage - \nPlease see [example.py](https://github.com/ethanhs/pyhooked/blob/master/example.py) for a basic example.\n\nIf you are using it with a UI library, please see [example_gui.py](https://github.com/ethanhs/pyhooked/blob/master/example_gui.py)\n\nPlease note that the wiki is out of date, and needs to be updated.\n\n#### Installing\n\nJust run `$ pip install pyhooked` or\n`$ pip install git+https://github.com/ethanhs/pyhooked.git` to get the latest version.\n\n\n#### Alternatives -\n[pyHook](http://sourceforge.net/projects/pyhook/) and [pyhk](https://github.com/schurpf/pyhk) inspired the creation of this project. They are great hotkey modules too!\n\n[pywinauto](https://github.com/pywinauto/pywinauto) is an incredibly useful Windows automation library that also includes among a plethora of tools, a hotkey detection library.\n\n#### License - \nPyHooked  Copyright (C) 2015  Ethan Smith\nThis program comes with ABSOLUTELY NO WARRANTY;\nThis is free software, and you are welcome to redistribute it\nunder certain conditions;\nPyHooked is licensed under the LGPL v3, or at your choice, any later version. This program comes with the lgpl in a .txt file.\n\nPyhooked 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.\n\n     Copyright (C) 2016 Maxim Samokhvalov\n     Copyright (C) 2016 Vasily Ryabov\n     Copyright (C) 2016 ethanhs\n     All rights reserved.\n    \n     Redistribution and use in source and binary forms, with or without\n     modification, are permitted provided that the following conditions are met:\n    \n     * Redistributions of source code must retain the above copyright notice, this\n       list of conditions and the following disclaimer.\n    \n     * Redistributions in binary form must reproduce the above copyright notice,\n       this list of conditions and the following disclaimer in the documentation\n       and/or other materials provided with the distribution.\n    \n     * Neither the name of pywinauto nor the names of its\n       contributors may be used to endorse or promote products derived from\n       this software without specific prior written permission.\n    \n     * Neither the name of hooks.py nor the names of its\n       contributors may be used to endorse or promote products derived from\n       this software without specific prior written permission.\n    \n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \n\n\n\n#####As of v0.6, the module is LGPL licensed, not under the GPL.\n\n####The Future - \nHere are a few things that I would like to see:\n* ~~add support for args for called functions~~  __(DONE)__\n* ~~get mouse inputs~~  __(DONE)__\n* ~~support all scancodes found [here](https://msdn.microsoft.com/en-us/library/aa299374%28v=vs.60%29.aspx)~~  __(DONE)__\n* Jython support\n* ????\u003cbr\u003e\nI 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!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmatyping%2Fpyhooked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmatyping%2Fpyhooked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmatyping%2Fpyhooked/lists"}