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
Handle time-consuming operations in a pyhook event handler
I want to be able to return False in a function and then start up another function. This is because I made a testing tool that records but needs to record the coordinates and not let the mouseclick through.
What I have now in combination with a…

Wealot
- 201
- 2
- 9
0
votes
1 answer
Getting global KeyPress duration using Python
I am doing an AI project based on Keyboard Analytics. In part 1 of the project, I have to build a python based application which will record keyboard inputs. I have some requirements.
I require a breakdown of input. For eg., 'I is CapsLock + 'i' or…

Sriram
- 1
0
votes
1 answer
Text being converted to chinese when sending text in python
I was playing around with the pyHook library and I decided to see if I could make a key logger.
The issue was that when I would try to save that text to a file or email it to myself, half of the time it would get converted to something like…

David Greydanus
- 2,551
- 1
- 23
- 42
0
votes
0 answers
How to use pyhook to capture Chinese input?
According to http://sourceforge.net/p/pyhook/wiki/PyHook_Tutorial/, I successfully capture pure keyboard input by pyhook. However, I face another issue is that I want to capture user Chinese input through Google Pinyin Input or other similar Input…

new2cpp
- 3,311
- 5
- 28
- 39
0
votes
0 answers
pyHook - PumpWaitingMessages throws execption whereas PumpMessages does not
I am looking to create an application that in PyHook to help record mouse click positions. At a high level I want to
Bind mouse-clicks to a method or function
When the user clicks the mouse, unhook the mouse clicks
Do some stuff in my program and…

user3490280
- 21
- 1
- 5
0
votes
1 answer
pyHook and wxPython - App Freezes when typing in itself
I have a small python application that creates a wxPython Frame and then uses pyHook to hook the keyboard. The Frame contains a TextCtrl. When the text in the control is changed, a thread is created to do some process (in this case, just a large…

mighele
- 93
- 1
- 5
0
votes
1 answer
Best way to take products off a page
I am thinking of making a little program for myself that takes products off a page like amazon and similar. What would be the best way to get all the info about the product off the page? Beautiful soup? Is there anything that would be better?
Btw I…

jped
- 486
- 6
- 19
0
votes
1 answer
replacing the backspace ascii in python
i'm using pyHook to capture key events to monitor my sons web activity and i have noticed that when i use the backspace key, it writes to a file as ascii, which appears as a little black box in notepad.
is there any way possible i can replace this…

user2351394
- 93
- 1
- 9
0
votes
2 answers
Python crash with pyHook.HookManager() on KeyDown [ctrl]+[c]
I am creating a python script to record the keys that I press across my system (keylogger) and call home with information on what my typing habits are. I am new to python and I am using this application to learn about it. I am using python-3.x and…

Steven Smethurst
- 4,495
- 15
- 55
- 92
0
votes
1 answer
APScheduler Issue
I'm using pyHook to hook the keys of my computer and to create a log of these keys. Now, I'm trying to send this log in interval, but all I get is this:
No handlers could be found for logger "apscheduler.scheduler"
This is my code, what should I…

Doron
- 161
- 2
- 5
- 13
0
votes
1 answer
Sending emails in python while using PyHook in intervals
I'm using pyHook to hook the keyboard and the mouse actions. A log of the hooks is being created while the program is running. I want to send the log to an email every 5 minutes - while the PunpMessages is still working and the hooking action is…

Doron
- 161
- 2
- 5
- 13
0
votes
0 answers
Count occurances of user input (mouse keyboard) in Python?
I am attempting to make a small application which will display the amount of user input averaged per minute (I would like it to display an average based on keystrokes and mouse clicks, like an APM counter ala Starcraft.).
I have just done some…

0mm3
- 319
- 2
- 16
-1
votes
1 answer
lock keys and release keys based on a button press using PySimpleGUI and pyhook
I have created a program where the user get access to the system keys such as ctrl and alt only with exiting a program with a button press. However when i run the program it does get stuck in the UI and wont allow me to do anything. Where am i wrong…

Nipun Alahakoon
- 2,772
- 5
- 27
- 45
-1
votes
2 answers
I cannot install pyHook
I was trying to install pyHook with pip but its not working.
I went into CMD type pip install pyHook, but it says could not find version
I was using python 3.8, is there something I was missing?

Pie fO Life
- 39
- 1
- 1
- 3
-1
votes
1 answer
How to fix [Type Error: unsupported operand type(s) for +=: 'builtin_function_or_method' and 'str'] error in Python
I'm programming a simple keylogger that writes in a output file, but when I try to run it, it brings me back this error:
[TypeError: unsupported operand type(s) for +=: 'builtin_function_or_method' and 'str']
Also the output file is written with…

Pardo DeCela
- 3
- 3