Posted by member 212670 on 2005-12-13 05:20:27 link

Actually, no xTextEdit necessary, but you do need a wallpaper module. ScanDir will write to the file for you.

I liked this question, so I put it together. Here's how:
*NetLoadModule scandir-0.3
*NetLoadModule lswchanger-1.2

ScanDirs Test

TestPath $themedir$test\
TestFiles *.*
TestOutputFile $ConfigDir$test.rc
TestFileOutputFormat *Popup "[filename]" !wallpaper .stretch "$ThemeDir$test\[filename]"


Then, in a popup, you would add:
*Popup "Wall Papers" Folder
include "$ConfigDir$test.rc"
*Popup ~Folder


TestPath points to the folder containing the walls, and TestOutputFile points to the file to write to, which you will "include" in to the popup. Oddly, both Path and OutputFile didn't like quotes around the path.

Think I'll do something like this for a theme... With comdlgls-0.7 some cool file and folder selecting would be easy enough, too. =)

(This would be a handy reference thread for the Code forum, imo.)