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

How to use XnView. Post your question or ask for help, here.

Moderators: helmut, Olivier_G, Dreamer, XnTriq, xnview

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

Postby wkone » Thu Mar 11, 2010 11:57 am

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: 15
Joined: Thu Mar 11, 2010 10:08 am

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

Postby wkone » Tue Mar 16, 2010 9:01 pm

Hum, any clue, then?

Thx
wkone
 
Posts: 15
Joined: Thu Mar 11, 2010 10:08 am

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

Postby xnview » Thu Mar 18, 2010 7:18 am

I need to add something like
Code: Select all
-clipaste,c:\file.jpg
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 16162
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Postby wkone » Fri Mar 19, 2010 9:26 am

Thank you very much :)

I look forward to use it in a future version!

Regards
wkone
 
Posts: 15
Joined: Thu Mar 11, 2010 10:08 am


Return to General Support

Who is online

Users browsing this forum: No registered users and 1 guest