Mouse Button Macro

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • pydirectinput

    Python mouse and keyboard input automation for Windows using Direct Input.

  • It looks like it uses strings to specify the keycodes in the same manner as PyAutoGUI, so you'd do

  • AutoKey

    AutoKey, a desktop automation utility for Linux and X11.

  • 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!

  • 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.

    InfluxDB logo
  • pyautogui

    A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard. (by TomW1605)

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to create context-sensitive/window-aware custom shortcuts?

    1 project | /r/kde | 14 May 2023
  • AMD Ryzen 7 7800X3D: Windows 11 vs. Ubuntu 23.04 Linux Performance

    2 projects | /r/Amd | 19 Apr 2023
  • Text expansion app for Linux

    2 projects | /r/linuxmint | 27 Mar 2023
  • Ergonomic lefty for Chromebook, with a good middle-click?

    1 project | /r/MouseReview | 24 Mar 2023
  • [Linux4Noobs] AutoHotKey pour Linux ?

    1 project | /r/enfrancais | 23 Mar 2023