Mouse Analytics Heatmap Tool
mkdir mouse-analytics
cd mouse-analyticsWindows:
python -m venv mouse_env
mouse_env\Scripts\activatemacOS/Linux:
python3 -m venv mouse_env
source mouse_env/bin/activatepip install pynput matplotlib numpy scipy seaborn- Copy the Python script to a file named
mouse_analytics.py - Place it in your
mouse-analyticsfolder
python main.py- No additional setup required
- Windows Defender might ask for permissions
- Important: You'll need to grant accessibility permissions
- Go to: System Preferences → Security & Privacy → Privacy → Accessibility
- Add Terminal (or your Python IDE) to the list of allowed applications
- You might also need to add Python itself
- Install tkinter if not already available:
sudo apt install python3-tk
- For some distributions, you might need:
sudo apt install python3-dev
If you get permission errors:
- Open System Preferences
- Go to Security & Privacy → Privacy
- Click on "Accessibility" or "Input Monitoring"
- Click the lock to make changes
- Add your terminal application or Python
