pydirectinput
Python mouse and keyboard input automation for Windows using Direct Input. (by learncodebygaming)
pyautogui
A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard. (by TomW1605)
pydirectinput | pyautogui | |
---|---|---|
3 | 2 | |
467 | 1 | |
- | - | |
0.0 | 0.0 | |
10 months ago | almost 4 years ago | |
Python | Python | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
pydirectinput
Posts with mentions or reviews of pydirectinput.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-31.
- TypeError: 'int' object is not iterable... HELP
-
Mouse Button Macro
It looks like it uses strings to specify the keycodes in the same manner as PyAutoGUI, so you'd do
-
Trying to move the mouse while in-game (mouse is caught by game window)
Which links to this repo: https://github.com/learncodebygaming/pydirectinput
pyautogui
Posts with mentions or reviews of pyautogui.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-31.
-
Mouse macro for Minecraft on Linux(and other OS)
I then took the replacement I found online, and I replaced the current _pyautogui_win.py.
-
Mouse Button Macro
pydirectinput doesn't work with linux. Instead, I found a replacement for the pyautogui _pyautogui_win.py which can be found in ~/.local/lib/python3.8/site-packages/pyautogui after you install pyautogui (pip install pyautogui) I then took the replacement I found online, and I replaced the current _pyautogui_win.py. This is the script that worked for me. I run Linux Cinnamon 20.1 "Ulyssa" and I am using this on Minecraft with a Razer Deathadder Essential. When I hold Button 9 (the button further away from you) it will have me facing my viewers (f5+f5+f1), and when I let go of button 9, if will put me back to normal view (f5+f1). I hope I helped anyone else with the same problem. Even if you didn't have this problem, I think it is a neat way to use that extra button on your mouse. Thanks for helping u/TSM- and showing me about pydirectinput.
What are some alternatives?
When comparing pydirectinput and pyautogui you can also consider the following projects:
AutoKey - AutoKey, a desktop automation utility for Linux and X11.