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

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
wkone
Posts: 17
Joined: Thu Mar 11, 2010 10:08 am

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

Post 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
wkone
Posts: 17
Joined: Thu Mar 11, 2010 10:08 am

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

Post by wkone »

Hum, any clue, then?

Thx
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

I need to add something like

Code: Select all

-clipaste,c:\file.jpg
Pierre.
wkone
Posts: 17
Joined: Thu Mar 11, 2010 10:08 am

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

Post by wkone »

Thank you very much :)

I look forward to use it in a future version!

Regards
Post Reply