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

Add screenshot on application window capability to Goose #305

Open
kang-square opened this issue Nov 21, 2024 · 2 comments
Open

Add screenshot on application window capability to Goose #305

kang-square opened this issue Nov 21, 2024 · 2 comments

Comments

@kang-square
Copy link

Hi, with the screen toolkit, I can take a screenshot on the entire whole screen. However, if I use single screen, every time before I take a screenshot, I will need to move the terminal window or other unrelevant windows aside, so that these windows won't overlap the target area I am interested in.
As I saw the screen toolkit using screencapture command(code), which has a -w flag to take a specific windows. I tested that asking Goose to run the command for me:

G❯ can you run this command for me? screencapture -w -x /tmp/window_screenshot_test
_1.jpg
I'll help you capture another screenshot of the current window.                    
─── shell ─────────────────────────────────────────────────────────────────────────
                                                                                   
 screencapture -w -x /tmp/window_screenshot_test_1.jpg                             
                                                                                   
The screenshot has been captured and saved to /tmp/window_screenshot_test_1.jpg.   
The command completed successfully. The -w flag captured the selected window and   
the -x flag prevented the camera shutter sound from playing. 

and it does capture the window I selected.
Can we add such capability to Goose screen tooltik? Happy to contribute

@Kvadratni
Copy link
Collaborator

sound like a neat idea. However goose is being rewritten in rust right now, so this contribution may never get fully released. Do you want to try to contribute to V1.0 branch in RUST?

@kang-square
Copy link
Author

Hi @Kvadratni I would like to. Is there a contribute guide in RUST?

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

No branches or pull requests

2 participants