Skip to content

Justin-Yeung/cursor_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

🖱️cursor_info

Python Script for Extracting Screen Info on Cursor Location

When designing, there sometimes needs to extract specific informations from the screen.

This tool quickly obtain the following info.

  • Pixel Coordinate (useful for quick locating and measurements)
  • Pixel Colour in RGB or HEX code (useful for replicating colours)
demo.mp4

Support Me😃

Buy Me A Coffee

👆Please feel free if my scripts had been useful for your projects. :)

Usage

  1. Run the script cursor_info.py or cursor_info.exe
  2. A small box will follow the cursor and highlight the colour at the cursor's pixel
  3. press the following keys to retrive specific info on the clipboard (may expand functionality in future):
    • p: pixel coordinate in X,Y
    • h: pixel colour in HEX code
    • r: pixel colour in RGB
  4. press ctrl+V to paste the info somewhere
  5. press x to close the window

Dependencies

The script requires the following python external libraries.

pyautogui pynput pyperclip

If you do not already have these packages, install them by running the following command:

pip install pyautogui pynput pyperclip

About

Python Script for Extracting Cursor Info on Screen

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages