A robust automated screenshot capture system
Project description
ClickShots
A robust automated screenshot capture system that monitors user interactions and saves screenshots based on configurable triggers.
Features
- Event-Based Capture: Takes screenshots based on mouse and keyboard events
- Configurable Delays: Prevents spam by enforcing minimum delays between captures
- Toggle Controls: Separate controls for mouse and keyboard monitoring
- Organized Storage: Automatically saves screenshots with descriptive timestamps
- Cross-Platform Support: Works on Linux, macOS, and Windows
Installation
From PyPI
pip install clickshots
For Development
# Clone the repository
git clone https://github.com/ayon1901/clickshots.git
cd clickshots
# Create and activate virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode with test dependencies
pip install -e .[test]
Usage
Command Line
# Use default directory (~/Pictures/clickshots)
clickshots
# Or specify a custom directory
clickshots -d /path/to/save/directory
Python Code
from clickshots import main
# Use default directory
main()
# Or specify directory
main(save_dir="/path/to/save/directory")
Controls
Mouse/Touchpad
- Ctrl + M: Toggle mouse/touchpad screenshots
- Left click/tap: Capture screenshot (when enabled)
Keyboard
- Alt + \: Toggle keyboard screenshots
- Space/Enter: Capture screenshot (when enabled)
General
- Ctrl + C: Exit program
File Naming
Screenshots are saved with descriptive names:
round_{device_type}_{round_number}_{event_type}_{timestamp}.png
Example: round_mouse_1_left_click_20240320-143022.png
Development
Running Tests
# Run tests
pytest
# Run tests with coverage
pytest --cov=clickshots
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
clickshots-0.2.0.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file clickshots-0.2.0.tar.gz
.
File metadata
- Download URL: clickshots-0.2.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63844010cd61eb16b6ab2a04550d05fc8b16c1b35e1698c6f3af379ce64739ac |
|
MD5 | 54a00782174f40424eae20beaaed2fdd |
|
BLAKE2b-256 | 904156535386a5cd7773542bc9522d4c5060ed66cc737ad7d449ef1b46e4b76b |
File details
Details for the file clickshots-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: clickshots-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d688bf8b2fff638f85c40cbcfcdaced74a4a85037f8739481ee903982c231a4 |
|
MD5 | 213d16d5a0c5374fdf8241c5d702c361 |
|
BLAKE2b-256 | d399cd05c73984a9fd284bad98294f992a538d8f2c5389ce83d2a9127bac4b57 |