Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1742

Help: Rainmeter Skins • Re: Nested Conditions + Formulas

$
0
0
Thanks balala, that was a great help in understanding why it wasn't working and how to get it to work, much appreciated. :thumbup:

A quick comment on your points:
  • I did think that the commas were the problem here, hence my comment about that :)
  • On first reading, I was adamant this was correct, until I read the original code! lol Thanks for that.
  • This is one of the issues I have, knowing when and where but mainly WHY I need to use brackets.
  • This one I know well and am fully aware of it, thanks.
I really was just trying to learn some more about formulas and how they work, always loved maths at school :D
Never had a reason to use it my whole life though! :(


That final code seems overkill for using where I planned to, given there will be another twelve for Disk Read and Write variations! O.O
Think I'll leave this as is. My aim was learning to use formulas to try condense things, least if that was a possibility, but I suppose it's not in all cases.

This is my working code at present, apart from the FontColor part obviously:

Code:

[sAllText]FontFace=Trebuchet MSStringStyle=BoldStringAlign=CenterCenterFontSize=9FontColor=#White#FontColor=((([m#CURRENTSECTION#DiskRead]=0)&&([m#CURRENTSECTION#DiskWrite]=0)) ? #DiskNorm# : ((((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite=0))=0 ? #DiskRead# : 0)||(((m#CURRENTSECTION#DiskRead=0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskWrite# : 0)||(((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskBoth# : 0)));FontColor=(((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite=0))=0 ? #DiskRead# : 0);FontColor=(((m#CURRENTSECTION#DiskRead=0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskWrite# : 0);FontColor=(((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskBoth# : 0)SolidColor=#Bg#AntiAlias=1DynamicVariables=1MeasureName=m#CURRENTSECTION#LabelMeasureName2=m#CURRENTSECTION#UsedMeasureName3=m#CURRENTSECTION#FreeMeasureName4=m#CURRENTSECTION#TotalText=[#Disk[#CURRENTSECTION]]Hidden=([m#CURRENTSECTION#Total:]=0 ? 1 : 0)ToolTipTitle=%1: %2BToolTipText=%3 / %4Group=[#Disk[#CURRENTSECTION]]LeftMouseUpAction=[#XY# /path="[#Disk[#CURRENTSECTION]]:\"]MiddleMouseUpAction=["#@#\USBDiskEjector\USB_Disk_Eject.exe """/SHOWEJECT /REMOVELETTER "[#Disk[#CURRENTSECTION]]:\"""""]X=([m#CURRENTSECTION#Total:]=0 ? 0 : #BarW#+2)rY=rW=#BarW#
This is a Text Style that all drive letters use via MeterStyle=sAllText.

Statistics: Posted by sl23 — Yesterday, 9:14 pm



Viewing all articles
Browse latest Browse all 1742

Trending Articles