PasteIntoFile
PasteIntoFile copied to clipboard
Command line version
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.
@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.
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:
- Sending a Windows Shift s and a mouse click to get a screenshot into the clipboard
- Invoke mspaint.exe with an argument of an existing image file
- Sending it Ctrl v (paste)
- Sending it Ctrl s (save -overwrite the existing file)
- Sending it a filename
- Sending it Alt F4 (close)
- 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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Eslam Hamoudamailto:[email protected] Sent: Thursday, 7 May 2020 9:36 PM To: EslaMx7/PasteIntoFilemailto:[email protected] Cc: woofwoofwoofwoofmailto:[email protected]; Mentionmailto:[email protected] Subject: Re: [EslaMx7/PasteIntoFile] Command line version (#23)
@woofwoofwoofwoofhttps://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 GitHubhttps://github.com/EslaMx7/PasteIntoFile/issues/23#issuecomment-625200836, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFFLP7F4P6NBXKLIYLE2FLRQKMKXANCNFSM4M3DB2CA.
@woofwoofwoofwoof Got it, Thanks for the explanation, will make sure to have the CLI support in the next release.
Terrific!
Sent from Mailhttps://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)
@woofwoofwoofwoofhttps://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 GitHubhttps://github.com/EslaMx7/PasteIntoFile/issues/23#issuecomment-625294013, or unsubscribehttps://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 --headless or --save argument so the GUI is not opened, but it is immediately saved.
What is the current status here?