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
2
votes
0 answers
pyhook user keyboard
Using Windows 7, Python 2.7 I wrote and compiled the code below (with pyinstaller2-0) and it works fine if I start it by right clicking and choose run as admin, but when I start it through the task scheduler as the system user, it does not log any…

JohnathonSparks
- 21
- 1
2
votes
1 answer
Python Alt Hooking
I was writing this type-recording program when I encountered a problem - Alt key doesn't have an Ascii number so I can't hook it in the regular way.
This is my source code without the Alt hooking try, the question is - how do I hook Alt?
I know that…

Doron
- 161
- 2
- 5
- 13
2
votes
2 answers
How to detect mouse side buttons with Python
I've been using pyhook and the message attribute of the clicking events, but it seems to be able to detect just the three standard buttons.
The others don't even get to the handler.
Is there a way to detect the extra buttons that the mouse might…

Fábio Diniz
- 10,077
- 3
- 38
- 45
1
vote
1 answer
View multiple instances at once
In turtle graphic I have a sheet of multiple instances of one class with the same name.
I would like to display these instances differently on the screen, but I don't know how.
I always only get one and not all of them.
from turtle import Turtle,…

filip.luzny
- 11
- 1
1
vote
1 answer
AttributeError: 'int' object has no attribute 'sprites'
I'm following a tutorial for a Mario / Platformer type game in pygame and tiled, and currently I'm adding the 'player goal' part to display where the goal is and for some reason currently when I run the Mario / Platformer type game I get the error…

moron
- 53
- 5
1
vote
0 answers
Delay in a callback causes other callbacks not being invoked in PyHook
import pyWinhook as pyHook
import time
def OnMouseEventLeft(event):
print('MessageName: %s' % event.MessageName)
time.sleep(2) //Intentional delay
print("------")
return True
def OnKeyboardEvent(event):
print('Key: %s' % …
1
vote
0 answers
Matplotlib Animation : How to make a reverse animation?
I'm currently working on matplotlib animation. Currently in the plot, I have 2 circles, green and orange one. What I want to make is shrinking the green circle until it came to zero (base of the cartesian diagram). What I got was a new blue circle…

Q-Max_Lu
- 15
- 4
1
vote
0 answers
pyHook + Tkinter = crash?
Consider the following example:
from Tkinter import *
import pyHook
class Main:
def __init__(self):
self.root = Tk()
self.root.protocol("WM_DELETE_WINDOW", self.onClose)
self.root.title("Timer - 000")
…

AquaRegia
- 11
- 1
1
vote
1 answer
Celery - implementing tasks in other module
Let's say I have two python packages
producer
consumer
they live in a different repositories (and running on separate servers)
I would like to use Celery implement some background tasks
so that producer will create tasks and consumer will execute…

Djangonaut
- 5,511
- 7
- 40
- 53
1
vote
0 answers
Is there any way that I can still make the program open videos after locking the mouse?
I have made a small program (copied the code which locks the mouse from the internet) with which I can open videos and I was wondering if there is a way which still opens videos but also locks the mouse. I have tried a lot of things yet I have found…
1
vote
0 answers
pyHook TypeError: an integer is required
The script is supposed to start printing the joystick axis position after pressing F9 and stop the printing after another press, but I get this strange error
line 27, in
clock.tick(20)
TypeError: an integer is required
When I run this in…

xvel
- 11
- 1
1
vote
1 answer
Django database admin cannot login
I've deploy a django to my own VPS, My DB is SQLite3, also I've set to 777. on homepage the data from database retrieve well,but I don't know why I can't login as admin
here is my settings.py :
DATABASES = {
'default': {
'ENGINE':…

0x00b0
- 343
- 1
- 3
- 17
1
vote
1 answer
ERROR: pyHook-1.5.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform
I am trying to make a keylogger in Python that requires pyHook module. I tried pip install pyHook but it did not work.
So, I downloaded this package from https://www.lfd.uci.edu/ -
pyHook-1.5.1-cp37-cp37m-win_amd64.whl
Then I tried to install it…

Vaibhav Madan
- 35
- 1
- 7
1
vote
1 answer
How do I add all include .h files in python directory
I am trying to install PyHook using PIP. When I run the command on cmd pip install pyhook3 I get a C1080 error that tells me there is no such .h file located in my directory. I traced the directory, downloaded the file and it showed me another. I…

Kai
- 45
- 6
1
vote
1 answer
Disable Mouse Function Python Code problem
Using the following code to disable my mouse and keyboard for 10 seconds. I'm still able to move my mouse and keyboard while the code is running. also I want to call this function from another script in python but I'm not able to. Any…

An P
- 21
- 2