Page 1 of 1

Help with Jmorleys TextClock 1.2

Posted: April 5th, 2021, 9:52 pm
by Sam12345
I couldn't find Jsmorleys TextClock 1.2 on here, so I linked it to DeviantArt.
I have the clock on my desktop instead of the normal taskbar clock, which I removed. I'm trying to keep the desktop minimalistic, so I don't want to clutter it with the date as well. However, sometimes I find it necessary to have the date, so I tried to put the date on in a tooltip, by adding:

Code: Select all

[MeasureDate]
Measure=Time
Format=%A, %B %#d, %Y
;
[MeterTime]
Meter=String
MeasureName=MeasureTime
InlineSetting=Face | Segoe UI
InlineSetting2=Size | 15
InlineSetting3=Weight | 100
InlineSetting4=Color | 255,255,255,255
InlineSetting5=Case | Upper
InlineSetting6=Size | 11
InlinePattern6=(?i)minute || minutes
InlineSetting7=Size | 11
InlinePattern7=(?i)#AfterText# || #UntilText# || #HalfText#
SolidColor=0,0,0,1
;(my addition) 
MeasureName2=MeasureDate
ToolTipTitle=Date & Time
ToolTipText=%A %B %d %Y
AntiAlias=1
But what comes up is just the actual text (%A %B %d %Y) :confused:

Re: Help with Jmorleys TextClock 1.2

Posted: April 5th, 2021, 10:11 pm
by CyberTheWorm
Try to change

Code: Select all

ToolTipText=%A %B %d %Y
to

Code: Select all

ToolTipText=%2

Re: Help with Jmorleys TextClock 1.2

Posted: April 5th, 2021, 10:14 pm
by Sam12345
CyberTheWorm wrote: April 5th, 2021, 10:11 pm Change ToolTipText=%A %B %d %Y to ToolTipText=%2
Done! It works! :thumbup:
But why? :oops:

Re: Help with Jmorleys TextClock 1.2

Posted: April 6th, 2021, 6:14 am
by CyberTheWorm
The MeasureDate has the format in it, so it shows the correct string
MeasureName2 is that string.
%2 = MeasureName2

https://docs.rainmeter.net/manual/meters/string/

Re: Help with Jmorleys TextClock 1.2

Posted: April 6th, 2021, 7:18 pm
by balala
Sam12345 wrote: April 5th, 2021, 10:14 pm Done! It works! :thumbup:
But why? :oops:
In addition to CyberTheWorm's reply, note that %A %B %d %Y are format codes, which are used correctly only by Format and TimeStampFormat options of Time measures. A string meter doesn't know them, you can't use them in the Text or TooltipText option of a such String meter, to get the appropriate time / date information. A String meter doesn't recognise that it should return the appropriate date / time values. That's why the meter shows %A %B %d %Y, as it is, not the appropriate values.

Re: Help with Jmorleys TextClock 1.2

Posted: April 6th, 2021, 8:04 pm
by Sam12345
CyberTheWorm wrote: April 6th, 2021, 6:14 am The MeasureDate has the format in it
balala wrote: April 6th, 2021, 7:18 pm only by Format and TimeStampFormat options ... A String meter doesn't recognise it
Thanks ! :thumbup: