I'm trying to use IfMatch in my MeasureDate, but it's not working. It seems not compare the value of the variable (the variable value is a string, a date like September 12, 2019) with the date of the Measure. I want to count when the program (explorer) is running, store the date in the variables EDate1,2,3...,7 and store the running time in the variables Count1,2,3....,7. The MeasureDate set 0 to Dif variable, i don't know why, because it means the values of the variables are not equal with the date. But in this case EDate1 will be equal to the current date (IfCondition8), so it should match right? Plus, interesting that IfCondition8 write the current date to EDate1, but not change the other EDate values...

Thanks every help

Code: Select all

```
[Rainmeter]
Update=1000
SolidColor=0,0,0,255
[Variables]
DateNow=[MeasureDate]
@includeStyles=#@#Styles.inc
@includeVariables=#@#Variables.inc
;-------------------------------------------
; MAIN APPEARANCE
;-------------------------------------------
[RuningInvisibleBackground]
Meter=String
W=([Launcher1Text:W] + (0 - ((#Launcher1IconHidden# - 1) * 40))) + 20
H=40
SolidColor=0,0,0,1
[MeasureProcess]
Measure=Plugin
Plugin=Process
ProcessName=explorer.exe
[MeasureProcess2]
Measure=Plugin
Plugin=Process
ProcessName=explorer.exe
Substitute="-1":"not running","1":"is running"
[MeterProcess]
Meter=String
MeasureName=MeasureProcess2
MeterStyle=FontStyleVegurLight
X=200
Y=20
Text=#Launcher1Text# %1
StringAlign=CenterCenter
FontSize=20
[MeterProcess2]
Meter=String
MeterStyle=FontStyleVegurLight
X=200
Y=50
Text=#Counter# mp - #DateNow#
StringAlign=CenterCenter
FontSize=20
[MeasureDate]
Measure=Time
Format=%B %#d, %Y
IfMatch=#EDate1#
IfMatchAction=[!WriteKeyValue Variables Dif 1 "#@#Variables.inc"]
IfMatch2=#EDate2#
IfMatchAction2=[!WriteKeyValue Variables Dif 2 "#@#Variables.inc"]
IfMatch3=#EDate3#
IfMatchAction3=[!WriteKeyValue Variables Dif 3 "#@#Variables.inc"]
IfMatch4=#EDate4#
IfMatchAction4=[!WriteKeyValue Variables Dif 4 "#@#Variables.inc"]
IfMatch5=#EDate5#
IfMatchAction5=[!WriteKeyValue Variables Dif 5 "#@#Variables.inc"]
IfMatch6=#EDate6#
IfMatchAction6=[!WriteKeyValue Variables Dif 6 "#@#Variables.inc"]
IfMatch7=#EDate7#
IfMatchAction7=[!WriteKeyValue Variables Dif 7 "#@#Variables.inc"]
IfMatch8=#EDate1# | #EDate2# | #EDate3# | #EDate4# | #EDate5# | #EDate6# | #EDate7#
IfNotMatchAction8=[!WriteKeyValue Variables Dif 0 "#@#Variables.inc"]
IfMatchMode=1
[MeasurePort]
Measure=Calc
Formula=#Counter#
IfCondition=(MeasureProcess = 1) && (#Dif# = 1)
IfTrueAction=!execute [!WriteKeyValue Variables Counter1 (#Counter1#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate1 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition2=(MeasureProcess = 1) && (#Dif# = 2)
IfTrueAction2=!execute [!WriteKeyValue Variables Counter2 (#Counter2#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate2 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition3=(MeasureProcess = 1) && (#Dif# = 3)
IfTrueAction3=!execute [!WriteKeyValue Variables Counter3 (#Counter3#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate3 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition4=(MeasureProcess = 1) && (#Dif# = 4)
IfTrueAction4=!execute [!WriteKeyValue Variables Counter4 (#Counter4#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate4 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition5=(MeasureProcess = 1) && (#Dif# = 5)
IfTrueAction5=!execute [!WriteKeyValue Variables Counter5 (#Counter5#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate5 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition6=(MeasureProcess = 1) && (#Dif# = 6)
IfTrueAction6=!execute [!WriteKeyValue Variables Counter6 (#Counter6#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate6 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition7=(MeasureProcess = 1) && (#Dif# = 7)
IfTrueAction7=!execute [!WriteKeyValue Variables Counter7 (#Counter7#+1) "#@#Variables.inc"][!WriteKeyValue Variables EDate7 [MeasureDate] "#@#Variables.inc"][!WriteKeyValue Variables Counter (#Counter1#+#Counter2#+#Counter3#+#Counter4#+#Counter5#+#Counter6#+#Counter7#) "#@#Variables.inc"][!Refresh]
IfCondition8=(MeasureProcess = 1) && (#Dif# = 0)
IfTrueAction8=!execute [!WriteKeyValue Variables EDate7 #EDate6# "#@#Variables.inc"][!WriteKeyValue Variables EDate6 #EDate5# "#@#Variables.inc"][!WriteKeyValue Variables EDate5 #EDate4# "#@#Variables.inc"][!WriteKeyValue Variables EDate4 #EDate3# "#@#Variables.inc"][!WriteKeyValue Variables EDate3 #EDate2# "#@#Variables.inc"][!WriteKeyValue Variables EDate2 #EDate1# "#@#Variables.inc"][!WriteKeyValue Variables EDate1 [MeasureDate] "#@#Variables.inc"][!Refresh]
DynamicVariables=1
```

Code: Select all

```
[Variables]
;-------------------------------------------
; VARIABLES
;-------------------------------------------
MainColour=255,255,255
SecondaryColour=255,255,255
TertiaryColour=0,0,0
QuaternaryColour=255,255,255
QuinaryColour=255,255,255
Analogue=ue
Colour=u
;---------------------------------------------
; LAUNCHERS
;---------------------------------------------
Dif=0
Counter=0
Counter1=0
EDate1=September 12, 2019
Counter2=0
EDate2=September 7, 2019
Counter3=0
EDate3=September 6, 2019
Counter4=0
EDate4=September 5, 2019
Counter5=0
EDate5=September 4, 2019
Counter6=0
EDate6=September 3, 2019
Counter7=0
EDate7=September 2, 2019
Launcher1Text=Explorer
Launcher1Path=explorer.exe
Launcher1IconHidden=0
Launcher1IconPath=D:\Download\explorer.png
```