I will post this cod - it is incomplete and likely wrong - I stopped when I got to the IfEqualAction line since I am not sure how to structure the amendment to the NET_MASK output.
Just to elaborate I am referring to this table: I want to compare the NET_MASK output to this table in reference to the IP address classes. Ao if the output of NET_MASK is 255.255.255.0 it would be amended with the letter C and over the whole table options for class A, B, and C. Dand E are unlikely to ever be used by me.
Here is my incomplete code:
Code: Select all
[MeasureMaskCalc]
Measure=Calc
Formula=[MeasureNetMask]
IfMatch=255.255.255.0
IfEqualAction=[!SetOption CentreTextU InlineSetting (*/) "(Config)"]
[MeasureNetMask]
Measure=Plugin
Plugin=SysInfo
SysInfoType=NET_MASK
UpdateDivider=100
[CentreTextU]
Meter=String
MeasureName=MeasureNetMask
X=10
Y=10
StringAlign=Center
Text=%1
InlineSetting=Case | Upper
FontColor=190,190,190,255
StringCase=Proper
FontFace=CourierNew
FontSize=25