Trying to set tooltip depending on a measure
Posted: May 16th, 2018, 12:53 am
Really sorry to be such a nuisance!
I am trying to modify https://github.com/DavidFW1960/Aussie-Broadband-Usage-Meter/blob/master/ABBUsage/ABB.ini so that if it's an unlimited plan, the tooltip text is different. Here's my mods:
If I uncomment the tooltiptext in [popup] and comment out the [measuretooltiptext] section, it is exactly right display for a plan with a quota:
But if I try and use the [measuretooltiptext] section it looks like this:
I have no idea what I am doing wrong.
I am trying to modify https://github.com/DavidFW1960/Aussie-Broadband-Usage-Meter/blob/master/ABBUsage/ABB.ini so that if it's an unlimited plan, the tooltip text is different. Here's my mods:
Code: Select all
[Popup]
Meter=Image
X=12
Y=10
W=200
H=95
LeftMouseDoubleClickAction=["https://my.aussiebroadband.com.au/"]
ToolTipTitle=Aussie Broadband Usage
ToolTipType=1
ToolTipIcon=#@#Images\Abbicon.ico
;ToolTipText="Allowance: [MeasureAllowanceGB] GB every [MeasureRollover]#CRLF#Down: [MeasureDownloadedGB] GB Up: [MeasureUploadedGB] GB#CRLF#Total: [MeasureTotalUsedGB] GB Remaining: [MeasureQuotaLeftGB] GB#CRLF#Data used: [PercentUsedData]% Left: [PercentRemainingData]%#CRLF#Today is day [MeasureToday] #CRLF#Used: [MeasureDaysUsedPart] days, [MeasureUsedPerDay] GB/Day#CRLF#Month used: [PercentMonthUsed]% Left: [PercentMonthLeft]%#CRLF#Per Day Start: [MeasureQuotaPerDayStart] GB Remaining: [MeasureQuotaPerDayRemaining] GB#CRLF#Quota Remaining Today: [AvailableDataToday] GB"
DynamicVariables=1
MouseActionCursor=0
[MeasureToolTipText]
Measure=String
IfCondition=(MeasureAllowanceGB >= 100000)
IfTrueAction=[!SetOption Popup ToolTipText "Allowance: Unlimited GB every [MeasureRollover]#CRLF#Down: [MeasureDownloadedGB] GB Up: [MeasureUploadedGB] GB#CRLF#Total: [MeasureTotalUsedGB] GB #CRLF#Today is day [MeasureToday] #CRLF#Used: [MeasureDaysUsedPart] days, [MeasureUsedPerDay] GB/Day#CRLF#Month used: [PercentMonthUsed]% Left: [PercentMonthLeft]%#CRLF#"]
IfFalseAction=[!SetOption Popup ToolTipText "Allowance: [MeasureAllowanceGB] GB every [MeasureRollover]#CRLF#Down: [MeasureDownloadedGB] GB Up: [MeasureUploadedGB] GB#CRLF#Total: [MeasureTotalUsedGB] GB Remaining: [MeasureQuotaLeftGB] GB#CRLF#Data used: [PercentUsedData]% Left: [PercentRemainingData]%#CRLF#Today is day [MeasureToday] #CRLF#Used: [MeasureDaysUsedPart] days, [MeasureUsedPerDay] GB/Day#CRLF#Month used: [PercentMonthUsed]% Left: [PercentMonthLeft]%#CRLF#Per Day Start: [MeasureQuotaPerDayStart] GB Remaining: [MeasureQuotaPerDayRemaining] GB#CRLF#Quota Remaining Today: [AvailableDataToday] GB"]
OnUpdateAction=[!UpdateMeter "Popup"][!Redraw]
But if I try and use the [measuretooltiptext] section it looks like this:
I have no idea what I am doing wrong.