It is currently April 19th, 2024, 12:43 am
Get help with creating, editing & fixing problems with skins
CyberTheWorm
Posts: 860 Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada
Post
by CyberTheWorm » April 5th, 2017, 8:57 pm
OK Guru's here's one for you.
I trying to write a skin that will load a skin when it detect a new drive has been plugged in. e.g USB drive. Then loads a skin and removes it when the drive is unplugged.
I have got it to work but get warnings when I refresh the skin.
Code: Select all
[MeasureDriveFExists]
Measure=FreeDiskSpace
IgnoreRemovable=0
Drive=F:
Type=1
IfAboveValue=1
IfAboveAction=[!ActivateConfig "SmallSkin\Drives\F" "Drive.ini"]
IfBelowValue=2
IfBelowAction=[!DeactivateConfig "SmallSkin\Drives\F" "Drive.ini"]
Is there a better way to do this?
kyriakos876
Posts: 919 Joined: January 30th, 2017, 2:01 am
Location: Greece
Post
by kyriakos876 » April 5th, 2017, 9:04 pm
CyberTheWorm wrote: OK Guru's here's one for you.
I trying to write a skin that will load a skin when it detect a new drive has been plugged in. e.g USB drive. Then loads a skin and removes it when the drive is unplugged.
I have got it to work but get warnings when I refresh the skin.
Code: Select all
[MeasureDriveFExists]
Measure=FreeDiskSpace
IgnoreRemovable=0
Drive=F:
Type=1
IfAboveValue=1
IfAboveAction=[!ActivateConfig "SmallSkin\Drives\F" "Drive.ini"]
IfBelowValue=2
IfBelowAction=[!DeactivateConfig "SmallSkin\Drives\F" "Drive.ini"]
Is there a better way to do this?
I don't know if there is a best way to do this, but you can for sure add:
to your measure as those warnings, I guess, are from not finding more than one drives.
FreeRaider
Posts: 826 Joined: November 20th, 2012, 11:58 pm
Post
by FreeRaider » April 6th, 2017, 11:21 am
What kind of warnings?
Are you sure about this "If measure > 1 do !activateconfig, if measure < 2 do !deactivateconfig "?
balala
Rainmeter Sage
Posts: 16144 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » April 6th, 2017, 4:12 pm
CyberTheWorm wrote: Code: Select all
IfBelowValue=2
IfBelowAction=[!DeactivateConfig "SmallSkin\Drives\F" "Drive.ini"]
The
!DeactivateConfig bang doesn't need a File parameter (in this case
"Drive.ini" ), as the !ActivateConfig needs. It always unloads the currently loaded skin, of the given config. Replace the IfBelowAction option with the following one:
IfBelowAction=[!DeactivateConfig "SmallSkin\Drives\F"] .
CyberTheWorm
Posts: 860 Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada
Post
by CyberTheWorm » April 6th, 2017, 4:13 pm
FreeRaider wrote: What kind of warnings?
Are you sure about this "If measure > 1 do !activateconfig, if measure < 2 do !deactivateconfig "?
e.PNG
You do not have the required permissions to view the files attached to this post.
GioRgSaVv
Posts: 62 Joined: February 7th, 2017, 10:02 pm
Post
by GioRgSaVv » April 9th, 2017, 6:03 pm
does this work? Im also interested in creating a similar skin that autohides all the unplugged drives and shows all plugged drives.
CyberTheWorm
Posts: 860 Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada
Post
by CyberTheWorm » April 9th, 2017, 6:24 pm
GioRgSaVv wrote: does this work? Im also interested in creating a similar skin that autohides all the unplugged drives and shows all plugged drives.
yes it does, just get the warnings shown above. My OCD just want's that to go away.