Command line option: -quit

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

Moderators: helmut, XnTriq, xnview

Post Reply
Guest

Command line option: -quit

Post by Guest »

Hi !

I made a WSH-script and will write the command-line-parameters of xnview in this scipt. But i missing a command "-quit"
or "-position 0 0 0 0 " of a simply preview-window ( "-full" is good but a little preview with -quit is very,very good ... :) ). Is it possible in the future ?



(Sorry for my bad english :wink: )
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: command line - wish

Post by xnview »

Anonymous wrote:I made a WSH-script and will write the command-line-parameters of xnview in this scipt. But i missing a command "-quit"
or "-position 0 0 0 0 " of a simply preview-window ( "-full" is good but a little preview with -quit is very,very good ... :) ). Is it possible in the future ?
Could you explain me more, please?
Pierre.
Guest

Post by Guest »

Yes !

my worklist ( scriptworklist ) :

- select a sourcefolder ( Shell.BrowseForFolder )
- select a targetfolder ( Shell.BrowseForFolder )
- start of a loop:
-- Xnview opend the 1.picture - in a small window ( for example with "-size or pos 0 0 0 0" ) ; i see it and :
-- Input a slogan or short word about the picture
Note: without -size the Inputbox is under the full picture :( :( :(
-- nconvert is converting the picture whit a few parameters and with the text-parameter nconvert made in it a stamp ( my slogan ) ; targetfile is "flowers_myslogan".jpg
--end of picturepreview ( "-quit" ) , Xnviewpreview must closed
-end loop

...

Do you understand my problem ? I hope so .
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

I think I understand what you want: An opened XnView showing an image should be exited after entering some text.

With commnand line options you cannot achieve this. Command line options are always passed when a is started, but you cannot pass command line options to an application that is already running.

There's some possible ways:

= Use extra program
You could use a program that tells the running XnView process to quit/close. I've just searched the web a bit and found some apps, e.g.
- AppKiller (now Freeware, licences can be found at Shenandoah Software)
- Process (Freeware, Command line)
I'm sure there are many more.

= XnView as "Killer"
XnView could be enhanced so that it actually accepts a command line option "-quit" or "-close". The command "xnview -quit" would start a new instance of XnView which would do nothing else than looking for running XnView instances and kill them. The app would then exit itself.
This could work, but I think the above applications for killing specific programs are much more appropriate and flexible.
Guest

Post by Guest »

The command "xnview -quit" would start a new instance of XnView which would do nothing else than looking for running XnView instances and kill them.
I understand. But i would'nt so many programs , while we have an licence for xnview by our firma and i can take the script also there .

For my privat work i take now "pictview" . It's an viewer with the commandline "-wt" - an delaytime to quit !
But i'd like xnview ... :( :( cry
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:
The command "xnview -quit" would start a new instance of XnView which would do nothing else than looking for running XnView instances and kill them.
I understand. But i would'nt so many programs , while we have an licence for xnview by our firma and i can take the script also there .

For my privat work i take now "pictview" . It's an viewer with the commandline "-wt" - an delaytime to quit !
But i'd like xnview ... :( :( cry
If you have a license, could you contact me by PM
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Anonymous wrote:For my privat work i take now "pictview" . It's an viewer with the commandline "-wt" - an delaytime to quit !
But i'd like xnview ... cry
Quitting after a specific time is very different (regarding implementation) to quitting an existing program using a command line option.
Would an option "-quitafter <seconds>" be helpful and do what you want?
Guest

Post by Guest »

:? I've been registred user but my account is inactiv ( "Panik" ) , while the administrator is waiting for permission of my parents so i can write in the forum ! :shock: I'm 36 years old !

@helmut
the option "-quitafter <seconds>" is good
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote: the option "-quitafter <seconds>" is good
So you would like a "-quitafter" to quit XnView after some seconds?
Pierre.
Guest

Post by Guest »

Yes - please !
Post Reply