Posted by member 212670 on 2006-02-07 22:16:12 link
I know there was another thread about this, but I can't find it either...
Here's a simplified version of what I'm currently doing. It requires the files paperjpg.rc, paperpng.rc, and paperbmp.rc in a Config directory (this of course is easy to modify to add other picture formats).
In my theme.rc:
In my themevars.rc (example):
In my popup.rc
Not shown, I've also added in options to set the walldir var (which is why I'm using a var for the path in the first place), and rescan/refresh the list, using comdlgls and a simple script.
Here's a simplified version of what I'm currently doing. It requires the files paperjpg.rc, paperpng.rc, and paperbmp.rc in a Config directory (this of course is easy to modify to add other picture formats).
In my theme.rc:
*NetLoadModule scandir-0.3
*NetLoadModule lswchanger-1.2
ScanDirs Walljpg Wallbmp Wallpng
WalljpgPath $walldir$
WalljpgFiles *.jpg
WalljpgOutputFile $ConfigDir$paperjpg.rc
WalljpgFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
WallbmpPath $walldir$
WallbmpFiles *.bmp
WallbmpOutputFile $ConfigDir$paperbmp.rc
WallbmpFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
WallpngPath $walldir$
WallpngFiles *.png
WallpngOutputFile $ConfigDir$paperpng.rc
WallpngFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
*NetLoadModule lswchanger-1.2
ScanDirs Walljpg Wallbmp Wallpng
WalljpgPath $walldir$
WalljpgFiles *.jpg
WalljpgOutputFile $ConfigDir$paperjpg.rc
WalljpgFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
WallbmpPath $walldir$
WallbmpFiles *.bmp
WallbmpOutputFile $ConfigDir$paperbmp.rc
WallbmpFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
WallpngPath $walldir$
WallpngFiles *.png
WallpngOutputFile $ConfigDir$paperpng.rc
WallpngFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$walldir$\[filename]"
In my themevars.rc (example):
walldir "C:\wallpapers"
In my popup.rc
*Popup "Wallpapers" Folder
include "$ConfigDir$paperjpg.rc"
include "$ConfigDir$paperpng.rc"
include "$ConfigDir$paperbmp.rc"
*Popup ~Folder
include "$ConfigDir$paperjpg.rc"
include "$ConfigDir$paperpng.rc"
include "$ConfigDir$paperbmp.rc"
*Popup ~Folder
Not shown, I've also added in options to set the walldir var (which is why I'm using a var for the path in the first place), and rescan/refresh the list, using comdlgls and a simple script.