User Submitted Macro

Random Desktop Background

Written by Jim Sabean

What it does

Sets the Desktop Background image to one of several .jpg files.

To install

Download the macro file umrandombackground.mex and save it to your hard drive in the folder where you store your macro file(s). Import the macro into your existing macro file by clicking File, Import, Import Macros.

To use

This is a scheduled macro that runs automatically when Macro Express is loaded. You may want to adjust the schedule so it will run at a certain time interval or when your computer is idle.

Before using, you will need to create a folder named ‘wallpaper’ in your My Documents\My Pictures folder or modify the macro to use another folder. Put several .jpg files into the newly created folder.

How it works

This macro will randomly select a .jpg file from your “My Documents\My Pictures\Wallpaper” folder and set the desktop background to that image. It does this using the “Repeat With Folder” and “Set Desktop Wallpaper” macro commands.

Limitations

This macro was written to run on Windows XP. If you are using another version of Windows you may need to change the macro command that specifies the folder where Windows stores its desktop background or wallpaper files.

As written, this macro will only use .jpg files. You may want to revise it to also allow the use of .bmp files

Requirements

 – Macro Express 3.5 or later
– Several .jpg files saved in the folder “My Documents\My Pictures\Wallpaper”