Page 1 of 1 1
Topic Options
#1467 - 2000-01-20 09:42 PM problem setting wallpaper
Anonymous
Unregistered


Hello,

Im am running NT4 workstation and server.
I am having problems setting the wallpaper to a specific bmp.
I have tried the "setwallpaper" function but it doesnt seem to work. Even when I search the registry the filename of the bmp after I run the code it is not found anyware. This is the line of code Im running to set the wallpaper:

if SetWallPaper("adtaker.bmp") = 0

I figured I would try and write the value straight into the registry to - "HKEY_CURRENT_USER\control panel\Desktop" using the "wallpaper" key. I dont think I am using the correct syntax. Unfortunately the I dont understand the manuals syntax fully. The line of code I tried to do this with is:

writevalue ("HKEY_CURRENT_USER\Control panel\Desktop","adtaker.bmp" "REG_SZ")

Thanks for any help.
Terry

Top
#1468 - 2000-01-21 03:19 AM Re: problem setting wallpaper
Pierre FREMION Offline
Getting the hang of it

Registered: 2000-01-11
Posts: 66
Loc: Paris, France, Europe, Sun3
Hi

The setwallpaper command (I never use) must still working but check out your syntax

The IF command must ended by ENDIF perhaps the troubles come from this.

For writevalue ("HKEY_CURRENT_USER\Control panel\Desktop","adtaker.bmp" "REG_SZ") ckeck the syntax too. There is a missing "entry" parameter and a missing "," between "adtaker.bmp" and "REG_SZ"

The command line must be
writevalue ("HKEY_CURRENT_USER\Control panel\Desktop","Wallpaper","adtaker.bmp","REG_SZ")

Hope this helps and solve your problem

------------------
Comments always welcome.
French native so I apologize for my (mis)use of English!

_________________________
Comments always welcome. French native so I apologize for my (mis)use of English!

Top
Page 1 of 1 1


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

Who's Online
0 registered and 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.103 seconds in which 0.069 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