-
Notifications
You must be signed in to change notification settings - Fork 351
Open
Labels
Milestone
Description
Enhancement request:
tl;dr add beginner-friendly screenshot functionality with reasonable defaults
What should be added/changed?
The minimum
A function that grabs the image from the screen and immediately writes it to disk. It should meet the following requirements:
- Calling with zero arguments saves a screenshot to the current working directory with a reasonable time stamp format such as
"%windowname_%Y%m%d_%H%M_%S_%f.jpg"
- Accepts the same optional bounds arguments as
get_image
- Accepts an optional
save_path
argument that directly specifies the directory to save to or filename to use, overriding any formatting in the latter case - Accepts an optional
time_format
argument to override the default timestamp format.
Additional features
We may also want to add :
- A screenshot manager object that allows setting a default filename / timestamp format
- Queuing features that allow multiple screenshots to queued up before writing to disk at a specified time, such as on game exit to avoid slow disk access during gameplay
- Integration with the pyglet event system (example: take a screenshot whenever event or condition X happens)
Integrations with video format libraries to automatically assemble a movie of the screenshotsMoved to Video Capture in Arcade #1349
What would it help with?
- Reduce the number of tools users need to install or learn to get help
- Make the cross-platform experience much less confusing
- Make Documentation: Add guide on taking screenshots & recordings #1338 far easier to write