Automate XnView in Starting different Slide shows

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

Moderators: XnTriq, xnview

BoLzI
Posts: 1
Joined: Thu Aug 25, 2005 12:38 pm

Automate XnView in Starting different Slide shows

Postby BoLzI » Thu Aug 25, 2005 12:43 pm

Hello,

i need a standalone XnView which is controlled by the command line or with VisualBasic.

Now i must know, if i can start XnView by parameters so that it starts automaticly a Diashow from a specified directory, which i tell him at the start.

Is there any possibility to make this work, i think starting the diashow isn't such complex, because i can tell him this in the Options, but how can i tell him the directory at start time or can i tell him the directory when XnView is open with a script?

Thx for help, kind regards,

BoLzI

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

Re: Automate XnView in Starting different Diashows

Postby xnview » Fri Aug 26, 2005 6:28 am

BoLzI wrote:Hello,

i need a standalone XnView which is controlled by the command line or with VisualBasic.

Now i must know, if i can start XnView by parameters so that it starts automaticly a Diashow from a specified directory, which i tell him at the start.

Is there any possibility to make this work, i think starting the diashow isn't such complex, because i can tell him this in the Options, but how can i tell him the directory at start time or can i tell him the directory when XnView is open with a script?

You can write a .sld file and start xnview with -slide parameter.
Pierre.

User avatar
helmut
Posts: 8120
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Automate XnView in Starting different Diashows

Postby helmut » Sun Aug 28, 2005 7:22 pm

xnview wrote:You can write a .sld file and start xnview with -sld parameter.

Yes, writing a temporary slide file (.sld) and starting XnView will do the job. Let me know here if a VB source sample is wanted.

ATH

Postby ATH » Sat Sep 17, 2005 9:23 pm

Hello,

What is a .sld file ? How does it work ?
I have the same needs than BoLzI : I'd like some standalone diashow using picts that are grouped in one folder.

Thanks for you explanations !

ATH

ATH

Postby ATH » Sat Sep 17, 2005 11:11 pm

Ok, I got the answer from XnView by asking for some slideshow, so now I have the .sld file structure.
:wink:

User avatar
helmut
Posts: 8120
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Postby helmut » Sun Sep 18, 2005 8:26 am

ATH wrote:What is a .sld file ? How does it work ?

A .sld file is a text file which basically consists of some slide show options and the list of files to be displayed.

A Sample:

Code: Select all

# Slide Show Sequence
Timer = 5
Loop = 1
FullScreen = 1
TitleBar = 0
View = 1
CenterWindow = 1
ReadErrors = 1
HideMouse = 0
RandomOrder = 0
ShowFilename = 1
BackgroundColor = 0
"D:\My Images\Crocodile.jpg"
"D:\My Images\Elefant.bmp"
"D:\My Images\Eagle.jpeg"
"D:\My Images\Karibou.png"

Once you have created a slide show and want to use it again, later, you save it by clicking the "Save" button in the dialog "Slide show".
Later, you can load it by opening the slide show dialog and then clicking on "Open" button.

If you want to start XnView and display a slide show, you will use the command line option, e.g.

Code: Select all

xnview -slide "my exciting two hour slide show.sld"

As written above, the slide file is a simple text file, so you can use write a Perl script, VB or JAVA program for example which creates a .sld file and then starts XnView.

mysterix
Posts: 3
Joined: Tue Oct 03, 2017 7:40 pm

Re: Automate XnView in Starting different Slide shows

Postby mysterix » Wed Oct 04, 2017 1:15 am

Can I somehow make complicated slideshows with different timer for each photo by editing .sld file?

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

Re: Automate XnView in Starting different Slide shows

Postby xnview » Wed Oct 04, 2017 9:58 am

mysterix wrote:Can I somehow make complicated slideshows with different timer for each photo by editing .sld file?

no sorry, the delay is global
Pierre.


Return to “Classic - General Support”

Who is online

Users browsing this forum: No registered users and 3 guests