Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MouseInfo-0.0.2.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file MouseInfo-0.0.2.tar.gz.

File metadata

  • Download URL: MouseInfo-0.0.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for MouseInfo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 719d1eb78950b493da0056b8aa5c121565271f271441247fe8a5193e2b22be54
MD5 c3929b786bff6d04702643e4ada10194
BLAKE2b-256 5c1fcdb1199170ee9e7e1e8f6c947c4c3a557c9d205c085ac08f8a95b92322d2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page