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.
Questions tagged [pyhook]
202 questions
1
vote
2 answers
Python: Counting while mouse Down, stop when mouse Up
I'm trying to make a python script that starts counting from 0 when the mouse button is pressed. My idea is to use pyHook to go into a function when left mouse button is pressed and exit the function when left mouse is released. I'm pretty new to…

mathiasxx94
- 23
- 1
- 8
1
vote
2 answers
how to install pyHook on windows 10
I Did donwnload the package from:
lfd.uci.edu
But when I run it from command prompt:
pip install pyHook-1.5.1-cp35-none-win_amd64.whl
I get this error:
pyHook-1.5.1-cp35-none-win_amd64.whl is not a supported wheel on this platform.
I have tried…

UcanDoIt
- 1,775
- 7
- 20
- 27
1
vote
1 answer
Having trouble installing pyWin32 on my windows 10 operating system based computer
Why will it not install? I thought I followed the correct procedures

Jane Poe
- 125
- 5
- 16
1
vote
0 answers
Python KeyLogger: Code Explanation
I stumbled upon this video which programs a very simple keylogger.
https://www.youtube.com/watch?v=8BiOPBsXh0g
I got the program to work but the video does not do a good job explaining the lines of code for a beginner like me. Can someone please…

WoodRobot
- 11
- 1
1
vote
0 answers
Use pyHook or msvcrt in windows service (python)
I am trying to make a simple keylogger with pyHook or msvcrt.
Both modules work fine when I compile the code and run the .exe file.
But when I'm trying to run the .exe as a windows service (using NSSM if that's matter), the service does not seem to…

Yovel Zanzuri
- 63
- 9
1
vote
1 answer
Tkinter withdraw oddness with pyHook
I have a Tkinter GUI application that I need to hide on a buttonpress. I cannot assume that the application will have focus, so I implemented pyHook, keylogger-style. However, whenever I call withdraw() from a function launched by pyHook, the window…

heidi
- 655
- 6
- 20
1
vote
0 answers
How do I make two loops?
I have PyHook loop
hm = pyHook.HookManager()
hm.KeyDown = Ob.on_keyboard_event
hm.HookKeyboard()
pythoncom.PumpMessages()
that initiates Ob.on_keyboard_event every time event.Ascii comes around from the keyboard. Because it doesn't recognize…

electroiv
- 168
- 1
- 2
- 12
1
vote
1 answer
Problems trying to install python module: pyHook
I am trying to download the pyHook module in order to complete an assignment for school. I have tried looking for an answer to my problem but I haven't found it. When I try to pip install python-pyHook I get this:
pip install…

William Kennedy
- 23
- 1
- 4
1
vote
2 answers
pyHook for 2.7.11 not importing
I have a x64 bit operating system and have Python 2.7.11 installed on my alienware 17 laptop but whenever I try and import the whl file into Python C:\Python27\lib\site-packages using pip or any other methods I just does not work. The feedback I get…

MSharpe
- 11
- 1
1
vote
1 answer
Python pyHook returning invalid characters (boxes instead of characters)
I am trying to make a simple program that logs all keystrokes, and I am having a hard time figuring out how to get it to work. i can't seem to find a solution to this problem anywhere.
I am using pyHook to get my keystrokes and I have created a…

jacobsskowronek
- 11
- 2
1
vote
1 answer
how to get the name and value of a GUI object in Python after click
I want to record a user scenario of a windows application. For this I want to retrieve/log the object type, the object name and the object value of GUI objects after a mouse click on the object next to a screen capture and the mouse position.
I am…

Bill Bridge
- 821
- 1
- 9
- 30
1
vote
1 answer
How to capture Shift + PrintScreen with pyHook?
I was trying to capture Shift+PrintScreen as Ctrl+c was captured in this answer.
Although the answer is outdated, but even if I fix the import, it doesn't works:
import pythoncom
from pyHook import HookManager, GetKeyState, HookConstants
def…

Santosh Kumar
- 26,475
- 20
- 67
- 118
1
vote
0 answers
Compiling pyHook failed via swig under windows
Note :
I just want pyhook 64 bit that's why doing all this because can't find any
64 bit version for Windows Link mentioned all over internet is this
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook but I can't find from
here there are…

Danny Rock
- 89
- 1
- 2
- 12
1
vote
0 answers
Accessing keyboard key up and key down
I was trying to create a simple program in python that can detect if a specific key on keyboard is pressed. As the response, I want my code to pressed a specific key on keyboard. I tested this code by pressing the W, A ,S ,D keys on a blank notepad…

Alvinadi Wijaya
- 45
- 1
- 7
1
vote
0 answers
How can I install pyhook for Python 3.3?
I have tried using pip but I get the following error:
Requirement 'pyHook-1.5.1-cp33-none-win_amd64.whl' looks like a filename, but the file does not exist
I am copying the exact filename yet I still get this error, I cannot just use pip install…

Matthew Bell
- 13
- 5