Page 1 of 1

How to create a file with the clipboard content in command ?

Posted: Thu Mar 11, 2010 11:57 am
by wkone
Hello,

I try to get the content of the clipboard and to automatically create a file out of it.

So far I've seen 2 very interesting threads but none of them are really doing what I want:
My problem is if I use the command line from the first thread I get a file with a new screenshot, not the clipboard content:

Code: Select all

{path to XnView}\XnView.exe -capture=desktop,c:\file.jpg
And if I use the command line from the second thread, XnView opens with the clipboard but the file is not saved.

Code: Select all

{path to XnView}\XnView.exe -clipaste
I tried things like:

Code: Select all

{path to XnView}\XnView.exe -clipaste,c:\file.jpg
In this case XnView opens, which is not what I want, without the screenshot and no file is created

or:

Code: Select all

{path to XnView}\XnView.exe -capture=clipaste,c:\file.jpg
In theory that would do exactly what I want, but in practice it seems the option 'clipaste' is treated as 'desktop'...


Can you please help me on that?

Thx very much

Re: How to create a file with the clipboard content in command ?

Posted: Tue Mar 16, 2010 9:01 pm
by wkone
Hum, any clue, then?

Thx

Re: How to create a file with the clipboard content in command ?

Posted: Thu Mar 18, 2010 7:18 am
by xnview
I need to add something like

Code: Select all

-clipaste,c:\file.jpg

Re: How to create a file with the clipboard content in command ?

Posted: Fri Mar 19, 2010 9:26 am
by wkone
Thank you very much :)

I look forward to use it in a future version!

Regards