pynput
AutoKey
pynput | AutoKey | |
---|---|---|
10 | 88 | |
1,692 | 3,155 | |
- | 1.4% | |
1.5 | 5.2 | |
5 days ago | 25 days ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pynput
-
Installing Pynput on the Deck
Saw this post but I'm not sure if that's the solution to my problem. I'm not so familiar with Linux kernels and all that so I'm being cautious. I have more details in this post on the pynput repo
-
Alternative to pyautogui for mouse click
There's pynput but that might have the same problem. If you're on Windows AutoHotkey is an awesome way to automate mouse and keyboard actions (but it's a different language than Python, although it seems someone has made a Python wrapper for it).
-
I made a fun Polybar module that visualizes your typing speed
I updated the script to use pynput instead of xlib, meaning that according to this thread, it should also work on wayland now! If anyone would like to test this for me, please do so and report back! :-)
-
What's the alternative of Authotkey ?
Autohotkey is also a scripting language. If you want parity there, there's robotJS, pynput, and xdotool (though this one won't work on some future version of mint when a piece of tech it relies on gets upgraded).
-
Testing a python script on wine to check for windows problems, have problem i'm not sure exists in windows, help?
which is supposed to present a selection list in the console, only the selection doesn't move in wine. I don't have a test case code ready for it. Another is pynput : https://github.com/moses-palmer/pynput
-
trying to emulate keyboard and mouse without a user logged in.
I have used this module to overcome the problem. Might be helpful to you as well i guess?
-
I installed pynput with pip, but VSCode doesnt recognize it.
First thing you should do when you encounter these types of issues is go to the github repo and look at the issues other users have put up. I think this one may be relevant.
-
cx_Freeze: Program crashes as soon as it starts. Need help to fix please.
I don't know anything about cx_Freeze but the error you are getting is from pynput in this backend function: https://github.com/moses-palmer/pynput/blob/master/lib/pynput/_util/__init__.py#L49
-
Wayland python key listener (pynput alternative?)
According to https://github.com/moses-palmer/pynput/issues/184
-
check time pressed in a loop
There is not basic method. Those libraries are making OS-specific system calls that can detect keypress events. Because that's very technical it's basically unpractical to try to implement this yourself, you would normally 'just' pick a library like pygame, keyboard, pynput. If you really want to study this you could look at such a library's source code, like for pynput's code for windows see here.
AutoKey
-
Learn AutoHotKey by stealing my scripts
I use AutoKey on Linux. It's less powerful than AHK but uses native Python which is nice: https://github.com/autokey/autokey
- How to create context-sensitive/window-aware custom shortcuts?
-
AMD Ryzen 7 7800X3D: Windows 11 vs. Ubuntu 23.04 Linux Performance
On Linux, the more direct equivalent to AHK is the similarly named AutoKey. AHK itself is never going to be cross-platform, due to the low-level it interacts specifically with Windows, but AutoKey is the Linux equivalent, designed to interact low-level with Linux in a similar way to AHK on Windows.
-
Text expansion app for Linux
https://github.com/autokey/autokey
-
Ergonomic lefty for Chromebook, with a good middle-click?
You can also try remapping mouse buttons. I use autohotkey to remap the middle clock to the right click. Autohotkey is windows only, but there is autokey which might help if you are a heavy middle click user like me
- [Linux4Noobs] AutoHotKey pour Linux ?
- Is there anyway to get Alt + ` behavior like on ubuntu and macos?
- advice on keyboard remapping sofware in linux
- advice on remapping sofware in linux
-
A guide to macroing on Linux
GitHub - autokey/autokey: AutoKey, a desktop automation utility for Linux and X11.
What are some alternatives?
python-evdev - Python bindings for the Linux input subsystem
pydirectinput - Python mouse and keyboard input automation for Windows using Direct Input.
sway-keylogger - Simple keylogger for Wayland compositors that are not protected against ptrace.
pyautogui - A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
robotjs - Node.js Desktop Automation.
AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
xdotool - fake keyboard/mouse input, window management, and more
ahk - Python wrapper for AutoHotkey with full type support. Harness the automation power of AutoHotkey with the beauty of Python.
ydotool - Generic command-line automation tool (no X!)
xkeysnail - Yet another keyboard remapping tool for X environment