-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
pyautogui
A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard. (by TomW1605)
It looks like it uses strings to specify the keycodes in the same manner as PyAutoGUI, so you'd do
I think I figured out a solution. The code I found online works at activating auto key. I just need to figure out how to make a different function run when I release the button. So far I have this code, but it only presses L, not K. Another problem is that it presses the keys whenever I click any mouse button. It only prints btn9 when I click button 9. Maybe I could just detect when it prints btn9? Maybe I could use pydirectinput, but it'd be the same basic concept, right? Thanks again for helping!
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.