death.crafter wrote: ↑August 2nd, 2021, 9:31 pm
Use OnChangeAction?
Code: Select all
[MeasureIP]
...
OnChangeAction=[!EnableMeasure MeasureStringIP][!UpdateMeasure MeasureStringIP][!DisableMeasure MeasureStringIP]
[MeasureStringIP]
Measure=String
String=[MeasureIP]
IfMatch=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$
IfMatchAction=[!SetVariable IPAd "[MeasureIP]"]
IfNotMatchAction=[!SetVariable IPAd ""]
DynamicVariables=1
Disabled=1
So actually this is exactly what I'm looking for ... However it doesn't seem to work for me, at least not fully. After
[MeasureStringIP] detects a change I'm using
[!UpdateMeasureGroup WANMeasures] to update a group of measures. This group of measures if based off of a
WebParser measure (which should run first) and then a bunch of calc measures that calculate different positions/values based on the return values of the
WebParser measure however nothing seems to be updating, do I have to split these two groups up? Tell the
webparser measures to update and then tell the
calc measures based on these values to update? I'm doing them all in one shot and it's not working which is why im asking. Also they all have an
UpdateRate=-1 however
UpdateMeasureGroup should over ride this no?
This is what I have for refrence:
Code: Select all
[MeasureIPRegistryValue]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
;RegKey=SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\[MeasureInterfaceGUID]
RegKey=SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{afdeecba-dfba-caff-5044-013412bceacd}
RegValue=NameServer
OnChangeAction=[!EnableMeasure MeasureStringIP][!UpdateMeasure MeasureStringIP][!DisableMeasure MeasureStringIP]
[MeasureVerifyStringIP]
Measure=String
String=[MeasureIPRegistryValue]
IfMatch=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$
IfMatchAction=[!SetVariable VPNNameServer "Matched"][!UpdateMeasureGroup WANMeasures][!UpdateMeterGroup WANMeters]
IfNotMatchAction=[!SetVariable VPNNameServer "Not matched"]
DynamicVariables=1
Disabled=1
By the way see the RegKey that's been commented out? I cant get a previous measure
[MeasureInterfaceGUID] to resolve to it's value and then get the correct location, I have to enter it manually as you can see and I dont understand why.
Again thank you for helping so much yet again.