timelapse icon indicating copy to clipboard operation
timelapse copied to clipboard

Define which part of the screen gets recorded

Open katieisnell opened this issue 5 years ago • 1 comments

Feature Request Type

  • [x] Core functionality
  • [ ] Alteration (enhancement/optimization) of existing feature(s)
  • [ ] New behavior

Description

A simple setting which changed which part of the screen is going to be recorded could be implemented. I would like to have the 3 options that are offered by the native screen recording tool:

  1. Capture entire screen (including menu bar)
  2. Capture selected window
  3. Capture selected portion

katieisnell avatar May 20 '20 23:05 katieisnell

That's a great idea @katieisnell.

screencapture has an option for capturing a rectangle:

-R<x,y,w,h> capture screen rect

So we could use that. Problem is that I don't know how we want the window portion to be selected interactively. Was thinking to run the first screencapture with screencapture -i to get an interactive rectangle for that and use the selected rectangle for subsequent screenshots with the -R flag above. Unfortunately screencapture does not output the rectangle that was captured. Ideas welcome.

Our screenshot code is here if you or anyone else wants to have a try.

mre avatar May 28 '20 16:05 mre