It is currently April 27th, 2024, 2:28 pm

Possible to have only part of a skin be click-through?

Get help with creating, editing & fixing problems with skins
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Possible to have only part of a skin be click-through?

Post by MerlinTheRed »

Try something like this. Vary LogScale to get different scales (the value should be very close to 1 but not equal to or smaller than 1). Tiny differences in LogScale make a huge difference in the size of the bars.

Code: Select all

[Rainmeter]
Update=1000
MiddleMouseUpAction=!Refresh #CURRENTCONFIG#
DynamicWindowSize=1

[Variables]
LogScale=1.1

[MeasureDriveSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1

[MeasureUsedDriveSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1

[MeasureLogScale]
Measure=Calc
Formula=LOG((MeasureDriveSpace/1024/1024/1024)+1)/LOG(#LogScale#)

[MeterDriveBar]
Meter=Bar
MeasureName=MeasureUsedDriveSpace
X=0
Y=0
W=[MeasureLogScale]
H=5
SolidColor=0,0,0
BarColor=255,255,255
BarOrientation=HORIZONTAL
DynamicVariables=1
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
Sandwich
Posts: 6
Joined: December 13th, 2011, 2:00 am

Re: Possible to have only part of a skin be click-through?

Post by Sandwich »

MerlinTheRed wrote:Try something like this. Vary LogScale to get different scales (the value should be very close to 1 but not equal to or smaller than 1). Tiny differences in LogScale make a huge difference in the size of the bars.
Hmm... I think that's the right direction, but there's very little apparent difference in the size of the bars for each drive... the 1.5Tb bar is perhaps 50% longer than the 80Gb bar, at any given LogScale. What would I need to adjust in the formula to make the size differences a bit more apparent?
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Possible to have only part of a skin be click-through?

Post by MerlinTheRed »

Hmm...a log scale is a log scale. The difference between 10 GB and 100 GB will always be about the same as the difference between 100 and 1000 GB. If you want more apparent differences, you could perhaps use a root function. Unfortunately Rainmeter only supports square roots.

Try something like this:

Code: Select all

Formula=SQRT(MeasureDriveSpace/1024/1024/1024)*#SomeScale#
Formula=SQRT(SQRT(MeasureDriveSpace/1024/1024/1024))*#SomeScale#
etc.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
Sandwich
Posts: 6
Joined: December 13th, 2011, 2:00 am

Re: Possible to have only part of a skin be click-through?

Post by Sandwich »

MerlinTheRed wrote:Hmm...a log scale is a log scale. The difference between 10 GB and 100 GB will always be about the same as the difference between 100 and 1000 GB. If you want more apparent differences, you could perhaps use a root function. Unfortunately Rainmeter only supports square roots.

Try something like this:

Code: Select all

Formula=SQRT(MeasureDriveSpace/1024/1024/1024)*#SomeScale#
Formula=SQRT(SQRT(MeasureDriveSpace/1024/1024/1024))*#SomeScale#
etc.
But doesn't a log scale double the result every exponential step, from 10 -> 100, 100 -> 1000, etc? So if my 80Gb drive were 80 pixels long in a log scale, I'd expect an 800Gb drive to be 160 pixels long...

...am I being a math newb? :p