Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to include mouse cursor in screenshot #255

Open
Suchyy opened this issue Dec 12, 2022 · 2 comments
Open

Option to include mouse cursor in screenshot #255

Suchyy opened this issue Dec 12, 2022 · 2 comments

Comments

@Suchyy
Copy link

Suchyy commented Dec 12, 2022

Hi, big props for library. Great tool.
I have some use case where I do automation through apps UI and I am planning to use this library to do light screen capture. It will be great to have ability to include mouse cursor in a screenshot somehow. It will help me see what automation bot is doing.
I red docs and didn't see option for that. Is there a chance to include this feature? Or enable it somehow in the other way?

Thanks!

@bencevans
Copy link
Owner

Currently, this isn't supported. Would be happy for a PR adding it under an option includeCursor! There's an implementation for each platform. macOS could easily support this as the underlying screencapture utility we use supports this with the -C` flag:

usage: screencapture [-icMPmwsWxSCUtoa] [files]
  -c         force screen capture to go to the clipboard
  -b         capture Touch Bar - non-interactive modes only
  -C         capture the cursor as well as the screen. only in non-interactive modes

as for the other platforms, would require a bit more research, I suspect.

@chesterc314
Copy link

Hi I'm keen to have this feature for Mac. Great lib 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants