| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rotating desktop wallpaper... |
Hi All!
In my message to All, dated , I wrote:
>JZ: /* =--=--=--=--=--=--=--=-- */
>JZ: /* Rotate Desktop Wallpaper */
>JZ: /* =--=--=--=--=--=--=--=-- */
>JZ: ImageRepository = '\\Tripod\Apps\Desktop\Images'
>JZ: SystemImagePath = 'D:\OS2\BITMAP\Custom'
>JZ: '{at}if not exist' SystemImagePath'\* mkdir' SystemImagePath
>JZ: if RxFuncQuery('SysLoadFuncs') \= 0
>JZ: then do
>JZ: call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
>JZ: call SysLoadFuncs
>JZ: end
>JZ: call SysFileTree SystemImagePath'\*', 'Images', 'FO'
>JZ: NewImage = (Images.0 = 0)
>JZ: call SysFileTree ImageRepository'\*', 'Images', 'FO'
>JZ: do f = 1 to Images.0
>JZ: ImageFile = FileSpec('Name', Images.f)
>JZ: if NewImage
>JZ: then do
>JZ: '{at}copy' ImageRepository'\'ImageFile SystemImagePath '>NUL'
>JZ: LEAVE
>JZ: end
>JZ: if stream(SystemImagePath'\'ImageFile, 'C', 'Query Exists') \= ''
>JZ: then do
>JZ: '{at}del' SystemImagePath'\'ImageFile
>JZ: NewImage = 1
if f = Images.0 then f = 0
>JZ: end
>JZ: end
>JZ: call Wallpaper SystemImagePath'\'ImageFile
>JZ: drop Images
>JZ: RETURN
>JZ: Wallpaper: PROCEDURE
>JZ: parse upper arg BitMapFile
>JZ: Layout = 'T' /* Layout can be N(ormal), S(caled) or T(iled) */
>JZ: FileSize = stream(BitMapFile, 'C', 'Query Size')
>JZ: if FileSize > 30000 then Layout = 'S'
>JZ: rc = SysSetObjectData('', 'BACKGROUND='BitMapFile',
>JZ: 'Layout)
>JZ: if rc \= 1 then say 'Failed to update Desktop Background to'
>JZ: BitMapFile'!'
>JZ: RETURN
That one added line above will make sure there's no blank screen when all
images in the repository have been exhausted.
Kind regards,
._|~/_
e-mail: johanzw{at}mail.com_NOSPAM (home)
web: http://surf.to/tripod (personal)
http://www.diskidee.be (our e-zine!)
--- Maximus-CBCS v3.01
* Origin: Tripod BBS Belgium - bortaS bIr jablu'DI'reH QaQqu' nay' (2:292/100)SEEN-BY: 10/3 345 20/11 105/360 106/1 2 3 1234 2000 123/500 124/5025 128/187 SEEN-BY: 130/803 132/152 140/1 143/2 150/220 154/15 167/133 201/505 226/600 SEEN-BY: 229/1000 2000 249/116 267/200 280/5003 333/0 379/1 103 1200 396/45 SEEN-BY: 397/1 633/267 270 712/848 2404/201 2624/306 3634/12 3800/1 @PATH: 292/100 140/1 106/2000 1 379/1 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.