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
0
votes
0 answers
Number of keys typed
I have some problems in returning the number of keys typed on the keyboard.
I finished the part when he can detect every key typed but I need the number of total keys typed.
This is my code written in python:
import pyHook
import pythoncom
def…

Firas
- 1
- 3
0
votes
2 answers
Is there a way to block all keys except for CAPS with pyhook
I am trying to block all keys on the keyboard except for the caps locks key using pyHook. Below is code that blocks only the a and A key, I am looking to do the opposite. What do I need to do to reverse this?
I have tried to put all keys on…

Robbysav
- 1
- 1
0
votes
3 answers
Installing PyHook python 3.7 64 bit
I’ve been trying to pip install pyHook for about 3 hours and tried every method that I can possibly think of or find but I can’t seem to get it to work. I get the error:
Requirement ‘pyHook-1.5.1-cp37-cp37m-win32.whl’ looks like a filename,but file…

Spacecase
- 37
- 1
- 1
- 6
0
votes
1 answer
Expected an indented block Exception
After running this code, i get this exception and i didn't found any place to fix it properly
import networkx as nx
from networkx.algorithms import bipartite
import numpy as np
from pandas import DataFrame, concat
import pandas as pd
import…

Amit Mek
- 105
- 1
- 1
- 5
0
votes
1 answer
How to import pyHook on Spyder (Python 3.7)
I'm trying to use pyHook to get my image to change when I click on it with the mouse. But when I run my code, I get an error.
My Code:
from __future__ import print_function
from PIL import Image
import pyHook
import pythoncom
im =…

Elijah
- 47
- 5
0
votes
0 answers
Receive GCM notification without Android
Is it possible to receive GCM notification from Amazon sns without Android? I.e. to email, python.
In other word, is it possible to emulate Android gcm client?

Irina
- 939
- 1
- 8
- 26
0
votes
1 answer
Record (get) mouse click position while key is pressed and stop recording when same key is released in python
I am creating a script where if user press f7 it will start recording mouse clicks and when he releases the button it should stop and this happens unless user closes the program.
The script is printing "None" inspite of pressing f7 and instead of…

Vinay Dandwani
- 45
- 8
0
votes
0 answers
PyHook Works Only Sometimes, not Consistently
I developed a Python program for use on multiple computers. The program is a counter that calculates time splits for every time a barcode scanner reads a QR code, and writes these time splits to CSV files an updates a dashboard with the count.…

Aniket P
- 1
0
votes
0 answers
Can't select a row from django models to output them to third model
I have two django models. Every model has n number of objects(rows in database). I want to select an object(a row) from model 1 and another object from model 2. I want to use fields of selected objects to create an object in model 3 using actions or…

Ashok Kumar
- 121
- 8
0
votes
1 answer
tkinter gui stops responding while 2 other threads open
from pythoncom import PumpWaitingMessages
import pyHook, threading
import tkinter as tk
threadsRun = 1
token = 0
def pas():
while threadsRun:
pass
def listen(startButton):
"""Listens for keystrokes"""
def…

ant9985
- 9
- 2
0
votes
1 answer
PyHook download error
I keep getting the following error
pyHook-1.5.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
I have downloaded the pyHook onto my computer. But I am unable to solve this error …

LearningAssembly
- 11
- 4
0
votes
1 answer
installing pyHook without prior download python 2.7
So, I'm trying to make a simple keylogger and I have this next bit of code:
try:
import pyHook, pythoncom
except:
os.system("pip install pypiwin32")
os.system("pip install pyHook")
import pyHook, pythoncom
the installation of…

Ido Kadosh
- 81
- 8
0
votes
0 answers
Python Keylogger: ImportError: No module named pythoncom
I want to write a keylogger using this video:
https://www.youtube.com/watch?v=8BiOPBsXh0g
I've got PyHook but on PyWin32 I tried downloading it from the site given in the video. If anyone can send me a download link for it, I will be grateful and…

Jack Thomas
- 193
- 2
- 3
- 12
0
votes
1 answer
Delay mouse click 0.5 second
I am using this code to detect mouse position with pyhook in Windows. What I need is to detect mouse click and add delay before execution - scenario: I click with mouse but this click should be 0.5 second delayed (so click should be executed after…

peter
- 4,289
- 12
- 44
- 67
0
votes
1 answer
ModuleNotFoundError: No module named 'pyHook'
I'm trying to use pyHook 1.5.1 on Windows with python 3.6. I successfully installed the module using pip and have confirmed that it is present in the site-packages folder with the rest of my modules. However, when I try to import it, I recieve the…

asheets
- 770
- 1
- 8
- 28