30 October 2018, 22:19 | #1 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
I need a program to randomize wallpapers
I'm looking for a program to be placed in Startup-Sequence to choose a random wallpaper for the Workbench screen. I already tried rndwbpix.lha and RandomBG.lha and both do not work because they almost always choose the first image of the directory. Is there a program that has already been tested and that implements a better algorithm?
Leandro. |
31 October 2018, 14:30 | #2 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,307
|
Sounds strange that both randomization work the same for you. Where do you start the tools? Maybe it helps to start them later or with a small delay. What happens if you start it after boot from WB?
I don't know if Stephan Rupprecht is still active but Thore should be. So you might ask them for help or an update. |
31 October 2018, 19:49 | #3 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Hi daxb!
When I start the rndwbpix program, it does not seem to work, even when I put it to change the wallpaper every 3/10/15/60 seconds! The RandomBG program seems to have started to work again, but before that it did not seem to work either. I start one of the two always one line before the "C:IPrefs". I tried to start them inside AmigaShell in the Workbench, as you said, and only RandomBG worked. Hmm, I need to get more wallpapers for my Workbench, because that "might" be what's causing the problem... Thank you for your attention! Last edited by Leandro Jardim; 09 October 2019 at 09:55. Reason: Little correction on IPrefs file path. |
31 October 2018, 21:28 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,307
|
Maybe SnoopDos can help you understand what is going on.
|
31 October 2018, 22:55 | #5 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,024
|
Quote:
The problem with programmed random number generators is that they can only generate a new pseudo-random number from the previous one. The first one has to be taken from a truely random source, otherwise you would always get the same series of numbers. Now there is nothing in a computer like the Amiga which is truely random. You might think that for example the microsends portion of the current time or the current beam position of the display would be random at any time. Well, they are, if you run the program in the middle of the day by double click. Because the time you need to select the icon and double-click it is random. But believe it or not, if you run the program from startup-sequence and use one of the mentioned sources, you always get the same or at least a similar starting value. One could also use the number of seconds since 1976 as a starting value, but then if you run the program twice within one second, you get exactly the same series or numbers. I don't remember exactly how I fixed it for Retrofan, but I believe on the first call my program reads the directory, puts the files in random order and then saves the list. On subsequent calls it just uses the next entry from the list. This way you always get a different file until the whole list has been run through. The disadvantage is that you have to recreate the list whenever you add or remove a file from the directory. |
|
03 November 2018, 22:51 | #6 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Many thanks to you too, Thomas!
|
03 November 2018, 23:11 | #7 | |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,993
|
Funny to note that today from another thread I red something similar on uridiumauthor.blogspot.com
(you will have to turn off the Firefox tracking protection to see the blog ) : Quote:
|
|
04 November 2018, 01:45 | #8 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
Quote:
I have tested RandomBG on both PAL and GFX systems end RandomBG choose a random background for the Screen and for the Workbench. Also RndWbPix choose a random background for the screen and it works well Last edited by AMIGASYSTEM; 04 November 2018 at 02:09. |
|
08 November 2018, 03:19 | #9 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Thanks everyone for the answers. I was using too few images I think (only three seems is not sufficient), because with 51 images now it works.
Thanks again! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga wallpapers | Specksynder | request.Other | 12 | 05 January 2018 18:32 |
External windows program communicating with program running inside WinUAE | xxxxx | support.WinUAE | 10 | 19 February 2013 09:27 |
Amiga Wallpapers. | Melonfish | request.Other | 6 | 14 April 2010 21:01 |
Game wallpapers must see | keropi | Retrogaming General Discussion | 9 | 15 August 2009 19:50 |
Retrogame wallpapers? | Dastardly | Nostalgia & memories | 26 | 02 November 2008 14:42 |
|
|