I'm trying to take the new mail count from the meter, use that to set a variable, and then use that variable within a measure.
So far, I've gotten the variable set correctly, however the measure doesn't function.
Any help would be greatly appreicated
Code: Select all
[Variables]
FriendlyName=Proton
Domain=Proton.me
ClickLink=mail.proton.me
NewMailColour=255,0,0,255
NoNewMailColour=255,255,255,255
NumberOfEmails=0
emailDiv=180
[msEmail]
Measure=Plugin
Plugin=EmailCheckerSimple
UpdateDivider=180
Delay=0
PerAccountMaxMessages=1
TotalMaxMessages=4
Separators=0
; Specify your accounts using numbered properties:
; ------- Proton
Name0=Proton
ServerAddress0=
ServerType0=IMAP
Port0=1143
IgnoreBadCert0=1
Security0=none
Username0=
Password0=
Active0=1
[mEmail]
Meter=String
Text=[&msEmail:GetData("(count)")]
OnUpdateAction=[!SetVariable NumberOfEmails [&msEmail:GetData("(count)")]]
UpdateDivider=#emailDiv#
DynamicVariables=1
Hidden=1
[MeasureCountEmails]
Measure=Calc
Formula=#NumberOfEmails#+0
UpdateRate=1
IfAboveValue=0
IfAboveAction=[!SetOption Icon GreyScale "0"][!SetOption Domainname FontColor #NewMailColour#][!SetOption Icon ImageTint "255,255,255,255"][!UpdateMeter Icon][!UpdateMeter Domainname][!Redraw]
IfEqualValue=0
IfEqualAction=[!SetOption Icon GreyScale "1"][!SetOption Domainname FontColor #NoNewMailColour#][!SetOption Icon ImageTint "255,255,255,150"][!UpdateMeter Icon][!UpdateMeter Domainname][!Redraw]
DynamicVariables=1
[Domainname]
Meter=STRING
FontColor=#NoNewMailColour#
Text="#FriendlyName#"
FontFace=Myriad Pro
FontSize=12
StringStyle=BOLD
StringEffect=Shadow
FontEffectColor=0,0,0,100
AntiAlias=1
X=0
Y=8
[Icon]
Meter=IMAGE
ImageName=#CURRENTSECTION#.png
X=0R
Y=0
W=32
H=32
LeftMouseUpAction=[#ClickLink#]
MiddleMouseUpAction=[!Refresh]
ToolTipTitle=#Domain#
ToolTipType=0
ToolTipIcon=INFO
ToolTipText="You have [MeasureCountEmails] new messages!"
DynamicVariables=1