What is the code of that measure?
It is currently September 8th, 2024, 12:19 am
Nested Conditions + Formulas
-
- Posts: 31
- Joined: January 25th, 2023, 2:56 am
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
Thanks
![Thumbs Up :thumbup:](./images/smilies/ay.gif)
Code: Select all
[m6Stat]
Measure=RecycleManager
RecycleType=Size
MinValue=0
MaxValue=(#BinSize# * 1073741824)
IfCondition=m6Stat < 1024
IfTrueAction=[!SetOption mScaledSize Formula "[m6Stat]"] [!SetVariable ScaleFactor "B"]
IfCondition2=(m6Stat >= 1024) && (m6Stat < 1024**2)
IfTrueAction2=[!SetOption mScaledSize Formula "Round([m6Stat]/1024,2)"] [!SetVariable ScaleFactor "kB"]
IfCondition3=(m6Stat >= 1024**2) && (m6Stat < 1024**3)
IfTrueAction3=[!SetOption mScaledSize Formula "Round([m6Stat]/(1024**2),2)"] [!SetVariable ScaleFactor "MB"]
IfCondition4=(m6Stat >= 1024**3) && (m6Stat < 1024**4)
IfTrueAction4=[!SetOption mScaledSize Formula "Round([m6Stat]/(1024**3),2)"] [!SetVariable ScaleFactor "GB"]
IfCondition5=m6Stat >= 1024**4
IfTrueAction5=[!SetOption mScaledSize Formula "Round([m6Stat]/(1024**4),2)"] [!SetVariable ScaleFactor "TB"]
IfConditionMode=1
Disabled=#6Stat#
57686174 77696C6C 6265 77696C6C 6265
-
- Posts: 31
- Joined: January 25th, 2023, 2:56 am
Re: Nested Conditions + Formulas
that's not the [mBinsize] measure or probably you messed up typing an wrong measure for the shape
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
Oh! lol
Is it this:
No that's count, must be this:
But the first one I posted says it's the Size. Oh, no, I put the wrong name in!
![ROFL :rofl:](./images/smilies/bv.gif)
Is it this:
Code: Select all
[mBinCount]
Measure=RecycleManager
RecycleType=Count
IfCondition=mBinCount = 0
IfTrueAction=[!SetVariable ItemPostfix "s"][!SetOption 6Info Text "Empty"]
IfCondition2=mBinCount = 1
IfTrueAction2=[!SetVariable ItemPostfix ""][!SetOption 6Info Text "[m6Stat:%,0] % - %1#CRLF#%2 Item"]
IfCondition3=mBinCount > 1
IfTrueAction3=[!SetVariable ItemPostfix "s"][!SetOption 6Info Text "[m6Stat:%,0] % - %1#CRLF#%2 Items"]
IfConditionMode=1
Disabled=#m6Stat#
Code: Select all
[mScaledSize]
Measure=Calc
Formula=0
Disabled=#m6Stat#
![Confused :?](./images/smilies/an.gif)
![ROFL :rofl:](./images/smilies/bv.gif)
Last edited by sl23 on July 23rd, 2024, 10:04 pm, edited 2 times in total.
57686174 77696C6C 6265 77696C6C 6265
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
Oh , hang on, I'm lost now cos the formula is that section divide that same section?
All the text is showing correctly:
% / AutoScaleGB The AutoScale is actually incorrect compared to my other skin
Number of items
All the text is showing correctly:
% / AutoScaleGB The AutoScale is actually incorrect compared to my other skin
Number of items
57686174 77696C6C 6265 77696C6C 6265
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
Ah, solved it, I think:
Code: Select all
[6Stat]
Meter=Shape
MeterStyle=sBar2
Shape2=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), (([&m[#CURRENTSECTION]:]/(#BinSize#*1073741824))*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlphe#
Shape3=Rectangle 0, (([&m[#CURRENTSECTION]:]/(#BinSize#*1073741824))*(-#BarH#)), ([#[#CURRENTSECTION]]=1?0:#BarW#), 2 | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]]
57686174 77696C6C 6265 77696C6C 6265
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
Just need to get the Bin size and the issues with the meters sorted.
Please...![Big Grin :D](./images/smilies/ag.gif)
I also have another problem with MiddleMouse action not working even though the code is exactly same as another skin where it works ok. It's just for opening the Bin properties.
Please...
![Big Grin :D](./images/smilies/ag.gif)
I also have another problem with MiddleMouse action not working even though the code is exactly same as another skin where it works ok. It's just for opening the Bin properties.
Code: Select all
LMU6=[!CommandMeasure mBinCount "OpenBin"]
MMU6=[!CommandMeasure "mBinProperties" "Properties shell:::{645FF040-5081-101B-9F08-00AA002F954E}"]
RMU6=[!CommandMeasure mBinCount "EmptyBin"]
[sStatLetters]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=CenterCenter
FontSize=9
FontColor=#White100#
SolidColor=#Bg#
AntiAlias=1
DynamicVariables=1
Text=[#L[#CURRENTSECTION]]
Hidden=([#[#CURRENTSECTION]Stat]=1 ? 1 : 0)
LeftMouseUpAction=[#LMU[#CURRENTSECTION]]
MiddleMouseUpAction=[#MMU[#CURRENTSECTION]]
RightMouseUpAction=[#RMU[#CURRENTSECTION]]
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "#Aqua#,100"][!UpdateMeter #CURRENTSECTION#] [!UpdateMeter #CURRENTSECTION#Info][!ShowMeter #CURRENTSECTION#Info][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!UpdateMeter #CURRENTSECTION#] [!HideMeter #CURRENTSECTION#Info][!UpdateMeter #CURRENTSECTION#Info][!Redraw]
X=([#[#CURRENTSECTION]Stat]=1 ? 0 : 2)R
Y=r
W=#BarW#
[1]
Meter=String
MeterStyle=sStatLetters
X=(#BarW#*0.5)
Y=(#BarH#-7)
[2]
Meter=String
MeterStyle=sStatLetters
[3]
Meter=String
MeterStyle=sStatLetters
[4]
Meter=String
MeterStyle=sStatLetters
[5]
Meter=String
MeterStyle=sStatLetters
[6]
Meter=String
MeterStyle=sStatLetters
57686174 77696C6C 6265 77696C6C 6265
-
- Posts: 31
- Joined: January 25th, 2023, 2:56 am
Re: Nested Conditions + Formulas
The measure "mBinProperties" exists in your code?
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Posts: 1600
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Nested Conditions + Formulas
After fixing my silly mistakes, I am nearly there with this skin!
I still could do with some help with download/upload formulas please.
As well as solving the issue with placement of the line part of the meters.
I just can't seem to figure these out.
Thanks for your help.![Thumbs Up :thumbup:](./images/smilies/ay.gif)
![Big Grin :D](./images/smilies/ag.gif)
I still could do with some help with download/upload formulas please.
As well as solving the issue with placement of the line part of the meters.
I just can't seem to figure these out.
Thanks for your help.
![Thumbs Up :thumbup:](./images/smilies/ay.gif)
Code: Select all
[Variables]
; Adjust Bar size to suit:
BarW=14
BarH=45
; Specify Speed in MB/s:
DownSpeed=30.00
UpSpeed=10.00
; Specify BinSize in GB:
BinSize=50
[sBar2]
DynamicVariables=1
Shape=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), -#BarH# | StrokeWidth 0 | Fill Color #Bg#
Group=BarBg
X=([#[#CURRENTSECTION]]=1 ? 0 : 2)R
Y=#BarH#
; SHAPE = Bg
; SHAPE2=Bar
; SHAPE3=Line
[4Stat] ; NET download
Meter=Shape
MeterStyle=sBar2
Shape2=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), (([&m[#CURRENTSECTION]:%]/#DownSpeed#)*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlphe#
Shape3=Rectangle 0, (([&m[#CURRENTSECTION]:%]/#DownSpeed#)*(-#BarH#)), ([#[#CURRENTSECTION]]=1?0:#BarW#), 2 | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]]
[5Stat] ; NET upload
Meter=Shape
MeterStyle=sBar2
Shape2=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), (([&m[#CURRENTSECTION]:%]/#UPSpeed#)*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlphe#
Shape3=Rectangle 0, (([&m[#CURRENTSECTION]:%]/#UPSpeed#)*(-#BarH#)), ([#[#CURRENTSECTION]]=1?0:#BarW#), 2 | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]]
57686174 77696C6C 6265 77696C6C 6265