MouseInfo

0.1.3 · maintenance · verified Fri Apr 10

MouseInfo (version 0.1.3) is a utility application that displays the XY coordinates of the mouse cursor and the RGB color information of the pixel beneath it. Designed for GUI automation planning, it functions across Windows, macOS, and Linux. The project is bundled with `PyAutoGUI` and appears to be in maintenance mode, with its last PyPI update in March 2020.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to launch the MouseInfo GUI application using Python. The application provides a live display of the mouse cursor's XY coordinates and the RGB color value of the pixel underneath. It will block the Python shell until the GUI window is closed. For a non-blocking experience or direct coordinate/color retrieval in scripts, users typically integrate with `PyAutoGUI`'s `position()` and `pixel()` functions, which `MouseInfo` is often used to plan for.

import mouseinfo

# To run the MouseInfo GUI application programmatically:
# This will open a GUI window that displays mouse coordinates and pixel color.
# The application is blocking until the window is closed.
mouseinfo.MouseInfoWindow()

# Alternatively, you can run it from the command line:
# python3 -m mouseinfo

view raw JSON →