It is currently April 24th, 2024, 3:38 pm

[Solved] Background Changer won't change backgrounds

Get help with creating, editing & fixing problems with skins
AdmiralConcurnable
Posts: 5
Joined: May 11th, 2018, 12:06 am

[Solved] Background Changer won't change backgrounds

Post by AdmiralConcurnable »

Hello everyone.

So this is the first time I've tried making a skin from scratch and I've hit a wall.
I've tried making a skin that changes my wallpaper every ten minutes but it doesn't seem to work and I can't figure out why.
Here's my code:

Code: Select all

[Metadata]
Name=Background Changer
Author=AdmiralConcurnable
Information=Should change your desktop wallpaper every ten minutes but it doesn't f*cking work
Version=1.0
License:Fair Use

[Rainmeter]
Update=1000


[MeasureTime]
Measure=Time
Format=%#M
IfCondition=((MeasureTime >= 10) && (MeasureTime < 20))
IfTrueAction=[!SetWallpaper "#@#background_0.jpg" Fill]
IfCondition2=((MeasureTime >= 20) && (MeasureTime < 30))
IfTrueAction2=[!SetWallpaper "#@#background_1.jpg" Fill]
IfCondition3=((MeasureTime >= 30) && (MeasureTime < 40))
IfTrueAction3=[!SetWallpaper "#@#background_2.jpg" Fill]
IfCondition4=((MeasureTime >= 40) && (MeasureTime < 50))
IfTrueAction4=[!SetWallpaper "#@#background_3.jpg" Fill]
IfCondition5=((MeasureTime >= 50) && (MeasureTime < 60))
IfTrueAction5=[!SetWallpaper "#@#background_4.jpg" Fill]
IfCondition6=(MeasureTime < 10)
IfTrueAction6=[!SetWallpaper "#@#background_5.jpg" Fill]

[Meter]
Meter=String
Text=""
Hidden=1
The Rainmeter log correctly shows the MeasureTime output but nothing else.
Hopefully you can help me a bit.
Thanks a ton.
Last edited by AdmiralConcurnable on May 11th, 2018, 1:35 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Background Changer won't change backgrounds

Post by jsmorley »

What are you getting in the About / Log? Any error messages?

I suspect a path issue...
AdmiralConcurnable
Posts: 5
Joined: May 11th, 2018, 12:06 am

Re: Background Changer won't change backgrounds

Post by AdmiralConcurnable »

Yeah it says:
!SetWallpaper: Unable to read file: C:\Users\(My name)\Documents\Rainmeter\Skins\WallpaperEngine\@Resources\Background_1.jpg

But that's the exact name and location of the file, so I don't know what the problem is.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Background Changer won't change backgrounds

Post by jsmorley »

AdmiralConcurnable wrote:Yeah it says:
!SetWallpaper: Unable to read file: C:\Users\(My name)\Documents\Rainmeter\Skins\WallpaperEngine\@Resources\Background_1.jpg

But that's the exact name and location of the file, so I don't know what the problem is.
No, it's not... ;-)
AdmiralConcurnable
Posts: 5
Joined: May 11th, 2018, 12:06 am

Re: Background Changer won't change backgrounds

Post by AdmiralConcurnable »

I mean thishttps://i.imgur.com/THQttLv.png is the properties page of that image so could you please tell me what I'm missing?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Background Changer won't change backgrounds

Post by jsmorley »

AdmiralConcurnable wrote:I mean thishttps://i.imgur.com/THQttLv.png is the properties page of that image so could you please tell me what I'm missing?
Go to File Explorer and Shift-Right-Click that image file. Say "Copy as path". Now paste that here.
AdmiralConcurnable
Posts: 5
Joined: May 11th, 2018, 12:06 am

Re: Background Changer won't change backgrounds

Post by AdmiralConcurnable »

Thanks a ton, that fixed it.

If you have the time, could you explain how the @Recources folder works? Is the path to that folder not just "#@#"?

In any case, thank you so much.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Background Changer won't change backgrounds

Post by jsmorley »

AdmiralConcurnable wrote:Thanks a ton, that fixed it.

If you have the time, could you explain how the @Recources folder works? Is the path to that folder not just "#@#"?

In any case, thank you so much.
I'm not suggesting you use that fully qualified path in your skin... #@# is the right way to go. Here is how it works:

https://docs.rainmeter.net/manual/skins/resources-folder/

I'm guessing your images are in a sub-folder under @Resources like @Resources\Images\Background_1.jpg or whatever. In that case the path is "#@#Images\Background_1.jpg" in the skin.
AdmiralConcurnable
Posts: 5
Joined: May 11th, 2018, 12:06 am

Re: Background Changer won't change backgrounds

Post by AdmiralConcurnable »

Okay I misspelled resources.

I hate myself right now.
Thank you again for your help :)
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Background Changer won't change backgrounds

Post by jsmorley »

AdmiralConcurnable wrote:Okay I misspelled resources.

I hate myself right now.
Thank you again for your help :)
Hehe... It happens. Glad to help.