Wallpaper cycler.

  • Thread starter Thread starter Lord Bharath Bhushan Lohray
  • Start date Start date
L

Lord Bharath Bhushan Lohray

I would like to write a .bat file to cycle my wall papers... The bat
file would be scheduled to execute every 30min. The bat file would
import a key to the registry that would change the call paper...

When I tried to manually change the key HKEY_CURRENT_USER\Control
Panel\Desktop
and exit the registry editor, the wall paper does not change...

How can I enforce the change...Refreshing the desktop did not solve
either...

Please help...

I would not like to use the commerically available softwares as they
contain more features than I need and consume some overhead...
Moreover, I would like to proceed with this as a technical problem...

Thank you.
 
AFAIK there's no native way to do this.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I would like to write a .bat file to cycle my wall papers... The bat
| file would be scheduled to execute every 30min. The bat file would
| import a key to the registry that would change the call paper...
|
| When I tried to manually change the key HKEY_CURRENT_USER\Control
| Panel\Desktop
| and exit the registry editor, the wall paper does not change...
|
| How can I enforce the change...Refreshing the desktop did not solve
| either...
|
| Please help...
|
| I would not like to use the commerically available softwares as they
| contain more features than I need and consume some overhead...
| Moreover, I would like to proceed with this as a technical problem...
|
| Thank you.
|
 
I just discovered a few regedit switches that works on win2000 sp4...

regedit /s regfile.reg -Silently imports the regfile.reg
regedit /e regfile.reg "Key Name" - Silently exports the key "Key Name"
to regfile.reg

This might help me cycle my wallpaper on each boot by putting a bat
file in the start up folder. I will have to write a small programme
that could dynamically generate a regfile to import.

I had to look on some sites to find the regedit command line
options...win2000 sp1 showed the command line options on regedit /? as
far as I remembered... But the sp4 does not...Though they work.

I'll try this... If it works, I'll post the solution here....

Bharath Bhushan Lohray
 
Doubtful without restarting the shell.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I just discovered a few regedit switches that works on win2000 sp4...
|
| regedit /s regfile.reg -Silently imports the regfile.reg
| regedit /e regfile.reg "Key Name" - Silently exports the key "Key Name"
| to regfile.reg
|
| This might help me cycle my wallpaper on each boot by putting a bat
| file in the start up folder. I will have to write a small programme
| that could dynamically generate a regfile to import.
|
| I had to look on some sites to find the regedit command line
| options...win2000 sp1 showed the command line options on regedit /? as
| far as I remembered... But the sp4 does not...Though they work.
|
| I'll try this... If it works, I'll post the solution here....
|
| Bharath Bhushan Lohray
|
 
Of Course...
I intend to make the wallpaper cycle on each restart now...Had to lower
my target.

Bh.L.
 
That should work, no problem.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Of Course...
| I intend to make the wallpaper cycle on each restart now...Had to lower
| my target.
|
| Bh.L.
 
As you have already found out you need the user to logoff and logon
again for the changes to take hold... but you can get around that with this:

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

Run it after the registry change in your batch file.

John
Of Course...
I intend to make the wallpaper cycle on each restart now...Had to lower
my target.

Bh.L.


Dave said:
Doubtful without restarting the shell.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
 
Good one John

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| As you have already found out you need the user to logoff and logon
| again for the changes to take hold... but you can get around that with
this:
|
| RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
|
| Run it after the registry change in your batch file.
|
| John
 
WOW... Wow...

It worked....

Hey John, where did you learn this stuff? Let's all know if there is a
web reference...

Thanks a lot...

Bharath Bhushan Lohray.
 
Here's maybe a more complete list of exported functions.

http://support.microsoft.com/dllhelp/?fid=204559&l=55&det=1

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| You're welcome. You can do lots of things with rundll32.exe and the
| right dll. A simple search on the internet with a few keywords will
| yield lots of information. It can lead to interesting finds like this:
| http://www.mail-archive.com/[email protected]/msg20786.html that
| gives you more search pointers or hints.
|
| John
 
Lord said:
I would like to write a .bat file to cycle my wall papers... The bat
file would be scheduled to execute every 30min. The bat file would
import a key to the registry that would change the call paper...

When I tried to manually change the key HKEY_CURRENT_USER\Control
Panel\Desktop
and exit the registry editor, the wall paper does not change...

How can I enforce the change...Refreshing the desktop did not solve
either...

Please help...

I would not like to use the commerically available softwares as they
contain more features than I need and consume some overhead...
Moreover, I would like to proceed with this as a technical problem...

Thank you.
You could just use Webshots desktop, it's free and there are literally
millions of pictures in their archive to use. http://www.webshots.com
 
Back
Top