Page 1 of 1 1
Topic Options
#61949 - 2002-01-09 03:23 PM SetWallPaper
ssx29 Offline
Lurker

Registered: 2002-01-09
Posts: 2
Hello,
i have W2K pro, kixtart 3.62 and i use a script to have a random screen. Since i use W2K it didn't work like it must do :

cls
color r/n

$RepertoireSource = "G:\CONFIG\IMAGES\"

$NomFichier = Dir($RepertoireSource + "*.BMP")
Dim $TableauNomFichiers[500]
$IndexFichier = 0

While $NomFichier <> "" and @ERROR = 0
$TableauNomFichiers[$IndexFichier] = $NomFichier
$IndexFichier = $IndexFichier + 1
$NomFichier = Dir()
Loop

$dummy = (VAL(SUBSTR(@TIME,7,2))*1000)
SRND ($dummy)

$Indexaleatoire = RND($IndexFichier - 1)

$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire])

This script works but the picture appear when i use ctrl+alt+suppr and not in the session wallpaper.

Any idea ?

Top
#61950 - 2002-01-09 06:50 PM Re: SetWallPaper
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
wellcome on board.

so, what happens if you change line:
$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire])
to:
$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire],0)
or to:
$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire],1)
???

_________________________
!

download KiXnet

Top
#61951 - 2002-01-09 08:34 PM Re: SetWallPaper
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
One addtional point, from reading threads related to this, you will want to insure that Active Desktop is not enabled either.

Thanks!

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#61952 - 2002-01-10 05:47 PM Re: SetWallPaper
ssx29 Offline
Lurker

Registered: 2002-01-09
Posts: 2
$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire],0)
or
$ret = SetWallPaper($RepertoireSource + $TableauNomFichiers[$indexaleatoire],1)
make an error.

But i'd think is a W2K bug. If i leave "no picture in the background properties, the picture of the script will be overwritten by "no picture".
But if i select a picture, the script will overwrite this picture and so my script work !!! I'm going to put a black picture by default.

Thanks for your help

Steven

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.052 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org