I was wondering how you set up the script to be able to make the menu randomly switch between wallpapers in the wallpaper folder when the geek.menu is started.
[Moved to Other Apps by mod JTH]
New: DesktopSnowOK (Jan 6, 2025), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec/Jan!, Please donate today
I have created a batch file this way, I call it swap.bat.
cls
@ECHO OFF
ren pic2.bmp temp.bmp
ren pic3.bmp pic2.bmp
ren pic4.bmp pic3.bmp
ren pic5.bmp pic4.bmp
ren pic6.bmp pic5.bmp
ren pic7.bmp pic6.bmp
ren portableapps_wallpaper.bmp pic7.bmp
ren temp.bmp portableapps_wallpaper.bmp
with a few of my favorite pictures in this folder, when I get bored I swap them out
it works well enough. I could never get it to work on autostart. MS is doing away with autostart anyway. They have to be bitmaps. Wish I could use jpegs.
Paul D.
I did something similar:
This means that I don't have to change the code if I add a new wallpaper file. As long as the wallpaper files are called photoX.bmp where X is a number and each file is number sequentially from 1 upwards, then the file selected will be totally random. I can add as many wallpapers I like and the one selected should be random.
I also found that by putting in:
rundll32.exe user32.dll,UpdatePerUserSystemParameters
to refresh the desktop background after the call to load StartPortableApps.exe meant that the new background image shows after loading PortableApps. Without it, the old background often remained.
Using XP SP3 and bat2exe to convert to an exe file. Your mileage may vary...
John
You just revived a topic from 9 months ago
Sometimes, the impossible can become possible, if you're awesome!
I'm new here... still finding my way around.
John
Welcome and thank you for sharing your work.
I don't know much about bat files so your script looks interesting to me and I learned a few things.
Thanks again
Wallpaper Switcher is quite good, a development version can be found here. I'm using it for a long time, pretty nice, with a lots of possibilities.