And I want that when it is Internet, the measure [MeasurePingIP] is completely deactivated and [MeasurePingIE] is activated
and when it is Ping it is the other way around.
I already replaced the value of #Select# with numbers 0 and 1 but I can't get it to work correctly. the measure that is working will be used as the result in [MeasurePing2] for use in the other part of the code.
Gracias y Saludos



Code: Select all
[MeasureStatus]
Measure=Calc
Formula=#Select#
Substitute="Internet":"0","Ping":"1"
[MeasurePingIE]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
UpdateDivider=5
IfCondition=(InternetStatus=1)
IfTrueAction=[!SetOptionGroup Pings UpdateRate 0][!UpdateMeasureGroup Pings][!SetOptionGroup Pings UpdateRate 10][!SetVariable Alpha2 #AlphaOn#][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOptionGroup Pings UpdateRate 0][!UpdateMeasureGroup Pings][!SetOptionGroup Pings UpdateRate 5][!SetVariable Alpha2 #AlphaOff#][!UpdateMeter *][!Redraw]
IfCondition2=[MeasureStatus] = 0
IfTrueAction2=[!SetOption Disabled 0]
DynamicVariables=1
Disabled=1
[MeasurePing1]
Group=Pings
Measure=Plugin
Plugin=PingPlugin
DestAddress=#Ping01#
UpdateRate=#UpdateRate#
OnChangeAction=[!SetVariable Alpha1 ([MeasurePing1]<#Milliseconds#?#AlphaOn#:#AlphaOff#)][!UpdateMeter *][!Redraw]
DynamicVariables=1
[MeasurePingIP]
Group=Pings
Measure=Plugin
Plugin=PingPlugin
DestAddress=#Ping02#
UpdateRate=#UpdateRate#
OnChangeAction=[!SetVariable Alpha2 ([MeasurePingIP]<1300?#AlphaOn#:#AlphaOff#)][!UpdateMeter *][!Redraw]
IfCondition=[MeasureStatus] = 1
IfTrueAction=[!SetOption Disabled 0]
DynamicVariables=1
Disabled=1
[MeasurePing2]
Group=Pings
Measure=Calc
Formula=(MeasureStatus=0?[MeasurePingIE]:(MeasureStatus=1?[MeasurePingIP]:[MeasurePingIE]))