It is currently April 27th, 2024, 4:23 pm

Hiding whole skin

Get help with creating, editing & fixing problems with skins
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Hiding whole skin

Post by Keilvethe »

Hello. Recently, I downloaded VCloud's Weather 2 skin. I gotta say, the skin is awesome. Anyway, since I'm kinda running out of space on my desktop, I was wondering if there was a way to add a button to hide/show the whole skin.

Any help in this matter will be very much appreciated. Thanks in advance.
User avatar
Brian
Developer
Posts: 2686
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Hiding whole skin

Post by Brian »

You could create a little skin of your own, then use the !Toggle bang in an image meter.

Your meter would something like this:

Code: Select all

[meterToggleSkin]
Meter=Image
X=0
Y=0
ImageName=image.png
LeftMouseUpAction=!Toggle #SKINSPATH#Vclouds2\vClouds.ini
Obviously you have to substitute image.png for an appropriate image of your choice. You also need to substitute "VClouds2" to the right path as well.

-Brian
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Hiding whole skin

Post by smurfier »

First create a completely separate skin which will function as the button. This is where you will want to use the !Toggle bang. The usage for this would be !Toggle Config/Name. The config name is the path within the skins folder to the skin without the file name which in your case would simply be !Toggle VCloudsWeather2.

In the [Rainmeter] section of the weather skin you need to add OnRefreshAction=!Hide. This will make sure the skin hides itself when Rainmeter starts.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Hiding whole skin

Post by Keilvethe »

Thanks a lot, guys.

Call me dumb, but... How do I create a new skin?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Hiding whole skin

Post by smurfier »

Please read the complete Rainmeter 101 guide including the Skin Tutorials.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Hiding whole skin

Post by Keilvethe »

So, I gave it a shot, and everything seems good... except that the button does nothing at all.

Here's how the .ini file looks:

Code: Select all

[Rainmeter]
Update=1000
Author=Keilvethe
BackgroundMode=0

[Variables]
SkinPath=C:\Users\Keilvethe\Documents\Rainmeter\Skins\VClouds Weather 2\Skins\VCloudsWeather2

; METERS

[meterToggleSkin]
Meter=Image
X=0
Y=0
ImageName=min.png
MouseActionCursor=1
LeftMouseUpAction=!Toggle #SkinPath#\VClouds Weather 2 - 2DaysH.ini
Any suggestions?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Hiding whole skin

Post by smurfier »

Code: Select all

[Rainmeter]
Update=1000
Author=Keilvethe

[meterToggleSkin]
Meter=Image
ImageName=min.png
LeftMouseUpAction=!Toggle "VClouds Weather 2"
The config name is the same as it is in Rainmeter.ini (right click the Rainmeter tray icon and select "Edit Settings").
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Hiding whole skin

Post by Keilvethe »

Thanks a lot, again. The thing finally worked.

The .ini file ended up looking like this:

Code: Select all

[Rainmeter]
Update=1000
Author=Keilvethe


[meterToggleSkin]
Meter=Image
ImageName=min.png
LeftMouseUpAction=!Toggle "VClouds Weather 2\Skins\VCloudsWeather2"
I really thank you very much for all your help.