-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Command line version #23
Comments
@woofwoofwoofwoof Thanks for the feedback, really appreciated. |
I wish to capture a screen shot from a programme (R for me) and manipulate the image. In R there are library functions to read jpg or png files.
The image I want is actually of a web browser window so that I can check the zoom level of the web browser. The way I am doing this now is from R:
1. Sending a Windows Shift s and a mouse click to get a screenshot into the clipboard
2. Invoke mspaint.exe with an argument of an existing image file
3. Sending it Ctrl v (paste)
4. Sending it Ctrl s (save -overwrite the existing file)
5. Sending it a filename
6. Sending it Alt F4 (close)
7. Then I read in the image file
I have done this with MSpaint and I could use your utility instead of MS-paint by feeding it keyboard input.
What would be nice is PasteIntoFile.exe C:\data\screenshot.png that would do steps 2-6 in one go.
The reason I suggest commandline is because it would be easy to write a wrapper in any language to invoke it with a system() call.
Obviously a library call would be even better, and R can invoke functions written in other languages such as C, Java. Many R libraries are simply wrappers of existing libraries written in other languages. But a command line is a lot easier for you and quite general.
Regards,
Garry
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Eslam Hamouda<mailto:[email protected]>
Sent: Thursday, 7 May 2020 9:36 PM
To: EslaMx7/PasteIntoFile<mailto:[email protected]>
Cc: woofwoofwoofwoof<mailto:[email protected]>; Mention<mailto:[email protected]>
Subject: Re: [EslaMx7/PasteIntoFile] Command line version (#23)
@woofwoofwoofwoof<https://github.com/woofwoofwoofwoof> Thanks for the feedback, really appreciated.
A very good idea, but could you explain more your use-case? a pseudo example will be great.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#23 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFFLP7F4P6NBXKLIYLE2FLRQKMKXANCNFSM4M3DB2CA>.
|
@woofwoofwoofwoof |
Terrific!
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Eslam Hamouda <[email protected]>
Sent: Friday, May 8, 2020 12:36:27 AM
To: EslaMx7/PasteIntoFile <[email protected]>
Cc: woofwoofwoofwoof <[email protected]>; Mention <[email protected]>
Subject: Re: [EslaMx7/PasteIntoFile] Command line version (#23)
@woofwoofwoofwoof<https://github.com/woofwoofwoofwoof>
Got it, Thanks for the explanation, will make sure to have the CLI support in the next release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#23 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFFLPZAZ45E7HGEL77PYJTRQLBOXANCNFSM4M3DB2CA>.
|
I have the exact same use-case so I can embedd it in a script to automate my workflow (and not needing any user interface). Unfortunately I have no clue about Windows development, so I cannot assit you with a PR. My suggestion would be a What is the current status here? |
This is so useful. I would like to use it from an R programme, which I can do but it would be much simpler if there was a command-line version.
The text was updated successfully, but these errors were encountered: