SlideShow [v2.0]

Discuss and share scripts and script files...
jupe
Posts: 3243
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SlideShow [v1.7]

Post by jupe »

I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v1.7]

Post by FluxTorpedoe »

jupe wrote: 24 Jun 2023 20:17 I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.
Wow, nice eye, thanks a lot Jupe! :appl:

Indeed, the "items don't match" bug can easily be fixed by changing this line:

Code: Select all

$ImgExt = "*.jpg|*.jpeg|*.png|*.gif|*.bmp"; 
into this one:

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
And my bad: I am still using XYplorer v24.40 (still, with "strict" syntax ON), and I didn’t think it could have been broken in a later release… Yet it is, in 24.60 also.
To be honest, it’s very rare that (non-beta) updates break old scripts.

I could post a quick update, but I’d rather delve deeper/longer and see how things evolve on this "filter" front.
I’ll keep you updated.

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

FluxTorpedoe wrote: 24 Jun 2023 20:55
jupe wrote: 24 Jun 2023 20:17 I can see from the screenshot 1 issue, not sure if it is the only one though since I haven't looked at the script, but XY now requires the filter to have spaces around the | sep.
Wow, nice eye, thanks a lot Jupe! :appl:

Indeed, the "items don't match" bug can easily be fixed by changing this line:

Code: Select all

$ImgExt = "*.jpg|*.jpeg|*.png|*.gif|*.bmp"; 
into this one:

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
And my bad: I am still using XYplorer v24.40 (still, with "strict" syntax ON), and I didn’t think it could have been broken in a later release… Yet it is, in 24.60 also.
To be honest, it’s very rare that (non-beta) updates break old scripts.

I could post a quick update, but I’d rather delve deeper/longer and see how things evolve on this "filter" front.
I’ll keep you updated.
Hi Guys,

Thank you so much for helping me with this. Changing this line

Code: Select all

$ImgExt = "*.jpg | *.jpeg | *.png | *.gif | *.bmp";
and uncommenting out this line since I had to comment it out before to make it work

Code: Select all

filter $ImgExt;
worked out great. There is no more No Valid Images to show error.

Also thanks FluxTorpedoe adding this line

Code: Select all

$Part_Timer = ($Part_Timer < 1)? 1 : $Part_Timer;
was exactly what I was looking for. Now I can put in 0.001 or even 0.0001 to make the slide show run as fast as possible creating an Image Sequence player.

You guys are awesome and so is XYplorer. Best file managing software I ever used. I thought total commander was pretty good but it had it's limitation. This software does everything I need and then some.

Thanks,
Jason
Last edited by jsboudreau on 25 Jun 2023 01:48, edited 1 time in total.

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

FluxTorpedoe wrote: 24 Jun 2023 11:25 Hi,

• #1
I got this message This view is empty. 151 items don't match the current filter.
I can’t replicate this one…
What is the extension of your image files, is it really "png"?

———————————————————————————

• #2
how hard would it be to make the image play back as fast as possible.
That’s possible indeed!
(Of course the real speed will depend on the size of your images / previews already generated or not)

Find the following line at the end of the script (around line ~166)

Code: Select all

$Part_Timer = ($STG_Timer / 50); // Smaller loop to facilitate Esc detection
And add this line after it:

Code: Select all

$Part_Timer = ($Part_Timer < 1)? 1 : $Part_Timer;
———————————————————————————

When this is settled, I’ll post a update with this speed fix, and another minor fix.
Tell me how things go.
Hi FluxTorpedoe,

Just curious when the SlideShow / Image Sequencer is running do you need to have it visually show it switching between the images. Just wondering if that could be shut off, would it help even more with playback performance.

Thanks,
Jason

jsboudreau
Posts: 2
Joined: 24 Jun 2023 05:40

Re: SlideShow [v1.7]

Post by jsboudreau »

Hi FluxTorpedoe,

Also is it possible to add an option to get the slideshow to run in the preview pane not a floating window or full screen.

Thanks,
Jason
Last edited by jsboudreau on 25 Jun 2023 04:27, edited 2 times in total.

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v1.7]

Post by FluxTorpedoe »

Glad it’s working for you! :)

———————————————————————————
jsboudreau wrote: 25 Jun 2023 02:05 Just curious when the SlideShow / Image Sequencer is running do you need to have it visually show it switching between the images. Just wondering if that could be shut off, would it help even more with playback performance.
I fear I don’t know what you’re refering to with "visually show it switching between the images".
Here in fullscreen, there’s no indicator at all, except the fact that the images change. Maybe you have the status visible (toggle with "S")?
Or are you talking in Window mode where, in the list view behind the preview, we see the selection moving from one file to the next? (but that’s unavoidable)

———————————————————————————
jsboudreau wrote: 25 Jun 2023 04:24 Also is it possible to add an option to get the slideshow to run in the preview pane not a floating window or full screen.
Nice idea…
OK, I’ve implemented it!
A little more tricky than I thought, so I’m still checking/debugging.

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v2.0]

Post by FluxTorpedoe »

##################
###   Slideshow v2.0   ###
##################



Hi everyone,

Another update long overdue… But better late than never, here’s a version with several important enhancements.

Most notable (full list and more details available below in changelog):
 ++ Option to run slideshow in internal preview pane
 ++ Abitily to use speed less than 0.1 sec (eg 0.01 works)
 ++ Pressing ESC while a slideshow runs should now always stop properly (closing slideshow tab and preview)

Note: On first run of the script, a maintenance window may open to enable a tweak in XYplorer. You can safely press OK.
(To enable it later, just reinstall a downloaded version of the script.)

Note for updaters: All settings are located at the bottom of the script.
So copy your slideshow settings from your existing script to the new one, and set UsePictureCodecs=1 if you have picture codecs installed.

Have a nice day! 8)
   Flux

———————————————————————————

• DOWNLOADS: (Previous versions available in Changelog)

› Script:
Slideshow.xys
(18.17 KiB) Downloaded 177 times
———————————————————————————

• REQUIREMENTS:
 — XYplorer >= 12.40.0213 (to be confirmed) — Highly Recommended: XYplorer version >= 24.60.0105

• INSTALLATION » for first-time users:
 — Please refer to first post

• UPDATE » for all users:
 — Overwrite your existing "Slideshow.xys" file with latest version
      (opt. after backing up your existing script / copying its settings)
 — Update your settings (for codecs and slideshows), at the bottom of the script
 — Note: On first run, an XYplorer and Slideshow maintenance check might be done and display a confirmation message, you can safely press OK. (Or run it later by reinstalling the downloaded script)

———————————————————————————

• CHANGELOG – v2.0:
++ Option to run slideshow in internal preview pane
      Note: with XYplorer < 24.60.0105, windowed preview flickers to steal back focus (not possible with internal)
++ Abitily to use speed less than 0.1 sec (eg 0.01 works)
      Note: real speed will depend on type and size of images
++ If a preview is already open when script is launched, it will be used (settings override),
      based on priority: Fullscreen > Window > internal preview
++ Pressing ESC while a slideshow runs should now always stop properly (closing slideshow tab and preview)
      Note: To work with internal preview, XYplorer tweak "PreviewCloseOnEsc" must be enabled
      This tweak is checked (and opt. enabled) on each update/first run of this script
+ If script was nonetheless interrupted, and slideshow tab and internal preview were left open,
      running any new slideshow will close both on start
** Picture codec setting is now with the other settings at the bottom of this script
* Filter bar: Replaced list of image filters by caption "Images"
! Made "filter" compliant with XY >= v22.20.0220 (mandatory spaces around | separators)
* Prevent flickering of image if preview already opened when launching slideshow


• CHANGELOG – all versions:
Don’t hesitate to browse the exhaustive changelog (with download links to previous versions) here: • Slideshow Changelog •
Last edited by FluxTorpedoe on 01 May 2025 14:27, edited 1 time in total.

lian00
Posts: 407
Joined: 09 Jul 2014 17:12

Re: SlideShow [v2.0]

Post by lian00 »

Thanks a lot for update.
Windows 10 64 bits

taufan
Posts: 48
Joined: 22 Mar 2020 02:33

Re: SlideShow [v2.0]

Post by taufan »

Hi,
In the past I was able to use SlideShow in my Quick Search results.
But after a while of not using Windows, last night I was unable to do that anymore?
The SlideShow only works when I open a regular folder without doing QuickSearch.
Any ideas?

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v2.0]

Post by FluxTorpedoe »

Hi,
(back online)
I can’t reproduce, neither with my XYplorer version, nor with with the latest beta and fresh settings.
It also works with the R flag (to recurse subfolders) because it’s automatically deactivated when the slideshow is launched from a quick search.
Could you give me more information on what happens on your side (error message, tab flashing, no activity at all…), and steps to reproduce?

Online
phred
Posts: 431
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: SlideShow [v2.0]

Post by phred »

@FluxTorpedoe-

Just starting to play around with this. There appears to be some confusion on my part as to what the current version is. The subject header of this thread says v2.0. The last post in the thread refers to v7.0. The script header shows 2.0. Clarification please.

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v2.0]

Post by FluxTorpedoe »

phred wrote: 01 May 2025 13:59 Just starting to play around with this. There appears to be some confusion on my part as to what the current version is. The subject header of this thread says v2.0. The last post in the thread refers to v7.0. The script header shows 2.0. Clarification please.
Haha, nice catch too!
Indeed, the SlideShow changelog from last year said v7.00 (presumably a copy/paste of the formatting from SessionManager), I changed it to v2.0, thanks for the tip.
I don’t see another occurrence of a v7.0 but don’t hesitate to tell.

So to be clear: the latest version of SlideShow is v2.0, as per the script version itself and the header.

Online
phred
Posts: 431
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: SlideShow [v2.0]

Post by phred »

FluxTorpedoe wrote: 01 May 2025 14:33 I don’t see another occurrence of a v7.0 but don’t hesitate to tell.
Thanks. I was referring to your announcement post on Tue May 14, 2024 which stated 7.0. But you've now corrected it.

I've got the script up and running and I must say I'm pretty impressed. Thanks for putting the time into creating it.

taufan
Posts: 48
Joined: 22 Mar 2020 02:33

Re: SlideShow [v2.0]

Post by taufan »

FluxTorpedoe wrote: 01 May 2025 12:20 Hi,
(back online)
I can’t reproduce, neither with my XYplorer version, nor with with the latest beta and fresh settings.
It also works with the R flag (to recurse subfolders) because it’s automatically deactivated when the slideshow is launched from a quick search.
Could you give me more information on what happens on your side (error message, tab flashing, no activity at all…), and steps to reproduce?

Hi,
It's works on the fresh settings.
But i dont know why it didn't work on my main XYPlorer.
The error message is:

"No valid images to show"
Clipboard-20250501-01.jpg
Clipboard-20250501-01.jpg (10.55 KiB) Viewed 984 times

FluxTorpedoe
Posts: 900
Joined: 05 Oct 2011 13:15

Re: SlideShow [v2.0]

Post by FluxTorpedoe »

Ok, the problem might come from the identification of filetypes for images.
Maybe in your main XYplorer you previously had my other script PowerOpener, which Slideshow now tries to access.

⮚ Try this:
   • Open Slideshow.xys
   • At the end of the script, edit the Picture codecs line, and either
      – set it to 0:   

Code: Select all

UsePictureCodecs=0
         This will constrain Slideshow to only display basic image formats (jpg, png, gif, bmp)
      – or if you have image codecs installed, set it to 1

Code: Select all

UsePictureCodecs=1
         This will enable Slideshow to display all {:Image} formats as defined in XYplorer
   • Alternately you can just download a "fresh" version of Slideshow.xys
         (Just know that obviously this will also reset your custom slideshow settings)

Note: setting it to 2 uses the INI from PowerOpener, which enables a custom list of image formats (eg photos from all cameras, but not "illustrations" like gifs, etc.). Useful eg if you’re a photographer.

Hopefully this will fix your issue, let me know.

Post Reply