Git Product home page Git Product logo

mouseinfo's Introduction

MouseInfo

An application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3. This is useful for GUI automation planning.

The full documentation is at https://mouseinfo.readthedocs.io/en/latest/

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

Support

If you find this project helpful and would like to support its development, consider donating to its creator on Patreon.

mouseinfo's People

Contributors

asweigart avatar bollwyvl avatar ccallawa-intel avatar sneakypete81 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mouseinfo's Issues

The button for "Copy All (F1)" loose (F1) key info after countdown, the same goes for all Copy and Log buttons

When the "3 Sec. Button Delay" is on, the button for "Copy All (F1)" has a countdown, that goes from:

'Copy All (F1)'
'Copy in 3'
'Copy in 2'
'Copy in 1'
'Copy All'

Loosing the key (F1).

My suggestion is to change init.py line 397

self.allCopyButtonSV.set('Copy All')

self.allCopyButtonSV.set('Copy All')

For
self.allCopyButtonSV.set('Copy All (F1)')

The same happens for:

  • Copy All (F1)
  • Copy XY (F2)
  • Copy RBG (F3)
  • Copy RGB HEX (F4)
  • Log All (F5)
  • Log XY (F6)
  • Log RGB (F7)
  • Log RGB Hex (F8)

Unify license (sublicening issue)

Hello,
in your great tools like PyAutoGui and PyMsgBox, you are using BSD-3-Clause License . But in this package you are using the GPL 3.0 In my opinion this is an issue - not only for users, but for you too. PyAutoGui is using this repo (mouseinfo). And according to GPL-3.0 license, you cannot sublicence. So either PyAutoGui must use also GPL-3.0 (because it depends on mouse info which is using GPL-3.0)... or simply change (and unify) mouseinfo license to BSD-3-Clause. This way your package can be used by more and more users (and organizations) where licensing is an important matter.
What do you think?

Other backend on Linux

Is it possible to have another backend than scrot on Linux.
I have no admin rights on my linux machine at work and 'scrot' is a pita to install.
Many thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.