It is currently April 27th, 2024, 12:45 am
Get help with creating, editing & fixing problems with skins
AdmiralConcurnable
Posts: 5 Joined: May 11th, 2018, 12:06 am
Post
by AdmiralConcurnable » May 11th, 2018, 12:12 am
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.
jsmorley
Developer
Posts: 22631 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » May 11th, 2018, 12:58 am
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
Post
by AdmiralConcurnable » May 11th, 2018, 1:19 am
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.
jsmorley
Developer
Posts: 22631 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » May 11th, 2018, 1:20 am
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
Post
by AdmiralConcurnable » May 11th, 2018, 1:25 am
I mean this
https://i.imgur.com/THQttLv.png is the properties page of that image so could you please tell me what I'm missing?
jsmorley
Developer
Posts: 22631 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » May 11th, 2018, 1:27 am
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
Post
by AdmiralConcurnable » May 11th, 2018, 1:30 am
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.
jsmorley
Developer
Posts: 22631 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » May 11th, 2018, 1:31 am
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
Post
by AdmiralConcurnable » May 11th, 2018, 1:33 am
Okay I misspelled resources.
I hate myself right now.
Thank you again for your help
jsmorley
Developer
Posts: 22631 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » May 11th, 2018, 1:34 am
AdmiralConcurnable wrote: Okay I misspelled resources.
I hate myself right now.
Thank you again for your help
Hehe... It happens. Glad to help.