Skip to content

mqxym/infinity-mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infinity-mouse

infinity mouse

Python script that moves the mouse in an ∞ pattern after a set inactivity timeout.

Requirements

  • MacOS with Python3.9+
  • Packages: see requirements.txt

Installation

Using Pip

mkdir infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate

pip install infinity-mouse

# Run the script
infinity-mouse # You may need to allow system access permissions for your terminal app

# Press CTRL+C to exit the script

Using Source

git clone https://github.com/mqxym/infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate && pip install -r requirements.txt

# Run the script
python run.py # You may need to allow system access permissions for your terminal app

# Press CTRL+C to exit the script

Options

  • Adjust the INACTIVITY_TIMEOUT_MIN and INACTIVITY_TIMEOUT_MAX values in the script or use CLI parameters:
# Run the script with min-max timeout in seconds
infinity-mouse 80-120

# Test the script
infinity-mouse --test

# View options
infinity-mouse -h

Project Goals

  • Learn automation like mouse movements and processing of inputs and HMIs
  • Learn pattern creation with sinus functions for the infinity movement pattern
  • Build and test CI/CD workflows

Future Additions

  • Linux and Windows support?