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
Automate XnView in Starting different Slide shows
Moderators: XnTriq, helmut, xnview
Re: Automate XnView in Starting different Diashows
You can write a .sld file and start xnview with -slide parameter.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?
Pierre.
Re: Automate XnView in Starting different Diashows
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.xnview wrote:You can write a .sld file and start xnview with -sld parameter.
A .sld file is a text file which basically consists of some slide show options and the list of files to be displayed.ATH wrote:What is a .sld file ? How does it work ?
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"
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"
Re: Automate XnView in Starting different Slide shows
Can I somehow make complicated slideshows with different timer for each photo by editing .sld file?
Re: Automate XnView in Starting different Slide shows
no sorry, the delay is globalmysterix wrote:Can I somehow make complicated slideshows with different timer for each photo by editing .sld file?
Pierre.