Hello everyone,
Here is my project, from a desktop app
Monitor a directory to display as soon as a photo is added to this directory, display it for 10 seconds, if no other new photos for 10 seconds then launch a slideshow of the photos already present and if again a new photo for example after 3 minutes, display it in priority for 10 seconds, so on…
Does anyone have any ideas?
Thanks in advance…
On Opening, read in any Pictures from your FolderItem into a Picture() array. Create a slideshow Timer to change the slideshow Picture(s) from the array.
MBS have an event that is called when a FolderItem is changed. You then read it and, if a new Picture exists, add it to your Picture() array. Interrupt your slideshow by turning off the Timer. Display the Picture for 10 seconds, then turn your Timer slideshow back on.
Thank you for your answer
As a beginner, what example can I use to get a basis?
MBS is a suite of plugins, right?
Yes. If you don’t want to use the MBS plugins you can recheck the folder periodically (eg per minute) with another Timer.
Yes. If you don’t want to use the MBS plugins you can recheck the folder periodically (eg per minute) with another Timer.
That’s not a good option.
Just use the operating system’s API (Win / MacOS)
On Windows, there are various very easy ways to accomplish this with WinAPI so you can retrieve the results in “realtime”. No need for a timer at specific intervals.