688 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
59
views
python 3 - pynput window click listener - relative coordinates
I'm trying to write a click bot that can read and write (record). So I need a click listener.
Since pyautogui doesnt have a click listener, I'm using pynput. But pynput only returns the X,Y click for ...
1
vote
0
answers
55
views
How to use Pynput to detect clicks in an iframe on a touch interface?
I've got a webapp with an iframe embedded in it, and have been using pynput as a way to detect the mouse inputs on this webapp. Trouble is, when using the touchscreen to click on the iframe it no ...
-2
votes
1
answer
143
views
python 3 - win32api.PostMessage click on minimized window
I'm trying to click a windows application window while its in a minimized state (don't maximize).
The following code is able to take a snapshot image of a minimized application, then perform image ...
0
votes
1
answer
77
views
Monitor keyboard while a game is running
How to monitor keyboard input while GTA5 is running using python script.
I want to press a key while the game is running to directly terminate the game process.I’ve tried using the keyboard and pynput ...
2
votes
1
answer
54
views
Python - Pynput & the time module do not seem to work together in a loop
So I have written this Python script to vote repeatedly (It's allowed) for a friend on a show at a local TV station.
import os
import time
from pynput.keyboard import Key, Controller
os.system("...
0
votes
0
answers
79
views
Pynput on raspberry pi 4 is not receiving keystrokes
I am trying to get pynput working on my raspberry pi 4. I tried using the example "monitoring keyboard" script from pynput and I am getting exactly the same issue as in this post. I am using ...
0
votes
1
answer
805
views
how to install keyboard module python 3.12.3 on linux mint
so when ever I try to import the keyboard module in the terminal I tipe:
pip3 install keyboard
and I get a really long error message×ばつ This environment is externally managed
╰─> To install Python ...
0
votes
0
answers
32
views
Inconsistent behavior with pynput when creating global hotkey
I'm trying to create a program that copies a certain text with the shortcut ctrl + c, and through that same hotkey, activates a logic that will perform certain formatting actions in the string. The ...
1
vote
0
answers
184
views
Why is pynput not detecting key presses on my Linux machine?
I’m trying to use the pynput library to capture key presses and releases in Python, but the listener is not responding to key events as expected. I’m running the script in a virtual environment on ...
0
votes
0
answers
97
views
Python Keylogger Not Logging Keystrokes on Windows 11, Potential issues with Decrypting logs
I'm developing a Python-based keylogger. The script runs without errors but does not show captured keystrokes on Windows 11. I expected it to log keystrokes in a file, but during the decryption phase ...
0
votes
1
answer
169
views
How to install PyNput on Replit
The problem I'm having is that I can't add the PyNput module to my environment in Replit.
I'm getting this error when I click "install":
warning: no previously-included files found matching '...
0
votes
0
answers
83
views
Python pynput Listener doesn't have permissions
import pynput
import time
def _flush_input():
try:
import msvcrt
while msvcrt.kbhit():
msvcrt.getch()
except ImportError:
import sys, termios
...
0
votes
0
answers
102
views
Trying to make a ghost of whatever is in my clipboard appear where my text cursor is
I am making a program that can store a clipboard history that you can scroll through to choose what to paste. I want some ghost text to appear (where your text cursor is) of what you currently have in ...
0
votes
1
answer
164
views
NotImplementedError when using threading with a keyboard and mouse listener with pynput
Here is the keyboard and mouse listener part of my code:
python
def mouse_listener(scroller):
"""Listens for mouse scroll events to scroll clipboard history."""
...
0
votes
1
answer
56
views
Pynput not logging alphanumerical keys on Mac
I want to detect when I press the "space" bar key using python and pynput.
I tried their documentation, my old code but nothing works anymore on MacOS 15.1.1. Even running the script using ...