ahk
pynput
Our great sponsors
ahk | pynput | |
---|---|---|
10 | 10 | |
786 | 1,682 | |
- | - | |
8.8 | 3.2 | |
5 days ago | 2 months ago | |
Python | Python | |
MIT License | GNU Lesser 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.
ahk
-
Using AutoHotkey as a backend engine for PowerShell
Well. I author something similar, it's a bridge to use AHK from Python, but when it comes to this idea of a fully structured means of passing data between the two platforms that's something that this package implements.
-
AutoHotKey V2 (Breaking Upgrade)
There is a nice python wrapper[1], perhaps that could work for your uses?
[1]: https://github.com/spyoungtech/ahk
-
How to automate windows without needing to get away from keyboard?
Check out AutoHotkey (AHK) for simple Windows automation needs. There is a python wrapper: https://github.com/spyoungtech/ahk
-
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).
-
Which python library: ahkpy or ahk?
In this case, both seem reasonably active for a project like this. The latter (https://github.com/spyoungtech/ahk) seems more active and has more comprehensive docs.
-
What are some of the main reasons I should switch to pytest from unittest?
I'm not sure how helpful it will be, but one of my projects does this. Most the tests are unittest.TestCase style, some of them are pytest style. All the tests are run just using pytest.
-
Interacting with Python
So, I author a Python ahk package that does this currently using IPC. The default model starts AHK and stops immediately for each command
-
Can Python do everything AHK can do?
Well, you can leverage AHK with a Python library. So, yes, Python can do everything AHK can do and more.
-
AHK is NOT user friendly
Anyhow. AHK's non-user-friendliness is also what motivated me to make a Python wrapper for AHK. So I TOTALLY get where you're coming from!
-
Tech savvy people of Reddit, what is a computer tip you are sure most haven't heard of?
Maybe you'd like the python wrapper for AutoHotkey better.
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.
What are some alternatives?
AHK-GDIp-Library-Compilation - Gdip_All library mega-compilation of user contributions, compatible with AHK v1.1 and AHK v2
python-evdev - Python bindings for the Linux input subsystem
lutris - Lutris desktop client
sway-keylogger - Simple keylogger for Wayland compositors that are not protected against ptrace.
PyInstaller - Freeze (package) Python programs into stand-alone executables
AutoKey - AutoKey, a desktop automation utility for Linux and X11.
Teams-Auto-Joiner - Python script to automatically join Microsoft Teams meetings.
robotjs - Node.js Desktop Automation.
AutoHotPie - Radial menus in Windows, aka PIE MENYOOS!
AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
AHK_MicMute - Control your microphone using keyboard and mouse hotkeys.
xkeysnail - Yet another keyboard remapping tool for X environment