Skip to main content

MouseInfo

An application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3.

Installation

To install with pip, run:

pip install mouseinfo

Quickstart Guide

To run this application, enter the following into the terminal:

python3 -m mouseinfo

Or for Python 2, run:

python -m mouseinfo

Alternatively, to run it from the interactive shell or a Python program:

>>> import mouseinfo
>>> mouseinfo.mouseInfo()

The Mouse Info application displays the current XY coordinates of the mouse cursor, as well as the RGB color information of the pixel directly under the cursor. This can be useful for planning out GUI automation tests where the mouse is controlled by a script (such as a Python script with PyAutoGUI) to click on the screen at specific coordinates.

The "Copy" buttons will copy this mouse information to the clipboard, while the "Log" buttons will add this mouse information to the text field in the application. The RGB color information is given as a comman-delimited, three-integer red, green, and blue values as decimals from 0 to 255. The hex values of the RGB value is also given.

For practical use, you should set the keyboard focus on these buttons by tabbing over them. This leaves you free to move the mouse into position and then press space or Enter to log the current mouse coordinates/RGB value.

The contents of the log text field can be saved by clicking "Save Log". This will automatically overwrite any file with the provided name. A screenshot can also be saved by clicking "Save Screenshot"

Contribute

If you'd like to contribute to MouseInfo, check out https://github.com/asweigart/mouseinfo

Metadata

Release files for MouseInfo 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MouseInfo 0.0.1
File Size Uploaded Provenance Actions
MouseInfo-0.0.1.tar.gz 7.8 kB Without provenance Details for MouseInfo-0.0.1.tar.gz

Release files / MouseInfo-0.0.1.tar.gz

Download URL MouseInfo-0.0.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7120278c336239f31ead6743b4db7e68dc6b492ae9499ada7b7eae469e159007
BLAKE2b-256 checksum
How to use checksums
a243905e75475662f4d4154ae1521a634e417f7d4fefdcffc3063887cfd3311c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.1

Security for MouseInfo 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page