Short: V1.2, Select random WB patterns Author: tboeckel@uni-paderborn.de (Thore Boeckelmann) Uploader: tboeckel uni-paderborn de (Thore Boeckelmann) Type: util/boot Architecture: m68k-amigaos PURPOSE RandomBG is a very simple program to randomly select a file from a given directory and set it as either workbench, window or screen background picture. RandomBG doesn't make any changes on your harddisk, it just updates the file "ENV:sys/WBPattern.prefs" in RAM and makes the IPrefs process load the new selected pictures. RandomBG will scan these directories, randomly select one file from each directory and then set the new backgrounds. SYNOPSIS WBDIR,WINDIR,SCRDIR,VERBOSE/S INPUTS WBDIR, WINDIR and SCRDIR are the directories where you keep your background pictures. RandomBG is able to select a picture for each background type from a different directory. If you for example just give the directory WINDIR, then RandomBG will just update the background picture for windows and leave the background for workbench and screen as it is. Enabling the VERBOSE option will make RandomBG output a few things it is currently doing. RESULTS The workbench, window and screen background picture will be automatically updated by the IPrefs process. EXAMPLE RandomBG wbdir=work:patterns/workbench scrdir=data:graphic/screens This will select one picture for the Workbench from "work:patterns/workbench" and one from "data:graphic/screens" for the screen and will leave the window pattern untouched. RandomBG windir=Work:Patterns/Window verbose This will just select a new window background from the files in "work:patterns/window" and additionally output something like this: choosing workbench background choosing window background old file: Work:Patterns/Window/bd3.png new file: Work:Patterns/Window/Sand.png choosing screen background Workbench and screen background are left untouched. BUGS Hopefully none. HISTORY V1.2: - fixed endless loop when there was only one or no picture in one of the directories