It is currently April 27th, 2024, 9:11 am

Hide Drive Unit

Get help with creating, editing & fixing problems with skins
User avatar
HUNTwerker
Posts: 20
Joined: February 2nd, 2024, 12:33 pm

Hide Drive Unit

Post by HUNTwerker »

Hello,

how can i hide the Disk: C value GB from this example:

Screenshot 2024-02-05 225718.png

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=C:
Label=1
UpdateDivider=5

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=5

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=C:
UpdateDivider=5

[MeasureUsedDiskSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
UpdateDivider=5

[MeterDriveInfo]
Meter=String
MeasureName=MeasureDiskLabel
MeasureName2=MeasureTotalDiskSpace
MeasureName3=MeasureFreeDiskSpace
MeasureName4=MeasureUsedDiskSpace
X=0
Y=0
FontSize=10
FontColor=255,255,255,255
SolidColor=0,0,0,255
AntiAlias=1
AutoScale=1
Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"
Thanks for Help :confused:
You do not have the required permissions to view the files attached to this post.
Last edited by HUNTwerker on February 6th, 2024, 7:53 am, edited 1 time in total.
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Hide Drive Unit❓

Post by Yincognito »

HUNTwerker wrote: February 5th, 2024, 9:55 pmhow can i hide the Disk: C value GB from this example
The "G"s are added by the AutoScale option from your MeterDriveInfo meter. You can remove them by replacing AutoScale with an equivalent Scale option. The "B"s are added by the Text option from your MeterDriveInfo meter. You can remove them by deleting the "B"-s in that option.

Or, you can divide the desired measures in the Formula option of some additional Calc measures, and use the said Calc measures in the MeasureName options from your meter.

By the way, you can use the </> button above your message box to post code (it's the 5th button there), instead of a spoiler. The code should be enclosed by [​code] and [​/code] tags - you can use the Preview button to test if it looks alright.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
HUNTwerker
Posts: 20
Joined: February 2nd, 2024, 12:33 pm

Re: Hide Drive Unit❓

Post by HUNTwerker »

I've already tried autoscale and scale but it doesn't have the success I was hoping for :-(



Here is the code:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=C:
Label=1
UpdateDivider=5

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=5

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=C:
UpdateDivider=5

[MeasureUsedDiskSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
UpdateDivider=5

[MeterDriveInfo]
Meter=String
MeasureName=MeasureDiskLabel
MeasureName2=MeasureTotalDiskSpace
MeasureName3=MeasureFreeDiskSpace
MeasureName4=MeasureUsedDiskSpace
X=0
Y=0
FontSize=10
FontColor=255,255,255,255
SolidColor=0,0,0,255
AntiAlias=1
AutoScale=1
Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"


Thanks anyway :thumbup:
RicardoTM
Posts: 268
Joined: December 28th, 2022, 9:30 pm
Location: México

Re: Hide Drive Unit❓

Post by RicardoTM »

HUNTwerker wrote: February 6th, 2024, 7:53 am I've already tried autoscale and scale but it doesn't have the success I was hoping for :-(



Here is the code:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=C:
Label=1
UpdateDivider=5

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=5

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=C:
UpdateDivider=5

[MeasureUsedDiskSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
UpdateDivider=5

[MeterDriveInfo]
Meter=String
MeasureName=MeasureDiskLabel
MeasureName2=MeasureTotalDiskSpace
MeasureName3=MeasureFreeDiskSpace
MeasureName4=MeasureUsedDiskSpace
X=0
Y=0
FontSize=10
FontColor=255,255,255,255
SolidColor=0,0,0,255
AntiAlias=1
AutoScale=1
Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"


Thanks anyway :thumbup:

AutoScale should be = 0 to delete the "G"
AutoScale=1
And you have to manually delete the B's on Text= on [MeterDriveInfo]
Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"
User avatar
HUNTwerker
Posts: 20
Joined: February 2nd, 2024, 12:33 pm

Re: Hide Drive Unit❓

Post by HUNTwerker »

RicardoTM wrote: February 6th, 2024, 8:45 am AutoScale should be = 0 to delete the "G"



I've already tried everything and it completely changes the values so that completely wrong values are displayed :uhuh:

Screenshot 2024-02-06 100149.png
Screenshot 2024-02-05 225718.png
You do not have the required permissions to view the files attached to this post.
RicardoTM
Posts: 268
Joined: December 28th, 2022, 9:30 pm
Location: México

Re: Hide Drive Unit❓

Post by RicardoTM »

HUNTwerker wrote: February 6th, 2024, 9:03 am Screenshot 2024-02-06 100149.png

I've already tried everything and it completely changes the values so that completely wrong values are displayed :uhuh:
Sorry, didn't test it. Here's the fix:

They're not wrong, it's just that AutoScale, as its name says, scales those numbers down. When that's disabled, you are seeing the values as bytes instead of GigaBytes, you only have to convert them back to GB. The conversion is 1GB = 1073741824bytes. Just replace AutoScale=1 with Scale=1073741824

Like this:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=C:
Label=1
UpdateDivider=5

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=5

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=C:
UpdateDivider=5

[MeasureUsedDiskSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
UpdateDivider=5

[MeterDriveInfo]
Meter=String
MeasureName=MeasureDiskLabel
MeasureName2=MeasureTotalDiskSpace
MeasureName3=MeasureFreeDiskSpace
MeasureName4=MeasureUsedDiskSpace
X=0
Y=0
FontSize=10
FontColor=255,255,255,255
SolidColor=0,0,0,255
AntiAlias=1
Scale=1073741824
NumOfDecimals=2
Text="C:\ (%1): [Total: %2] [Free: %3] [Used: %4]"
Captura de pantalla 2024-02-06 032503.jpg
Notice I also added NumOfDecimals=2
You do not have the required permissions to view the files attached to this post.
Last edited by RicardoTM on February 6th, 2024, 9:47 am, edited 6 times in total.
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Hide Drive Unit❓

Post by Yincognito »

HUNTwerker wrote: February 6th, 2024, 7:53 am I've already tried autoscale and scale but it doesn't have the success I was hoping for :-(
Like RicardoTM already detailed, you had to make the suggested changes in order to make it work as expected. It's not hard, but yeah, it takes a bit of practice to get the idea. Things won't automagically happen if you don't take the appropriate actions to do it. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
HUNTwerker
Posts: 20
Joined: February 2nd, 2024, 12:33 pm

Re: Hide Drive Unit❓

Post by HUNTwerker »

Yes...nice 8-)

It worked wonderfully, thanks mates you for all the effort :oops:


I spent the whole day yesterday looking for suitable solutions here in the forum and also on the internet and found nothing, THANK YOU :thumbup:


Screenshot 2024-02-06 181132.png
You do not have the required permissions to view the files attached to this post.
RicardoTM
Posts: 268
Joined: December 28th, 2022, 9:30 pm
Location: México

Re: Hide Drive Unit

Post by RicardoTM »

Glad it helped ✌🏼