It is currently April 13th, 2021, 11:12 am

Help with Jmorleys TextClock 1.2

Help with creating, editing & fixing problems with skins
User avatar
Sam12345
Posts: 73
Joined: February 27th, 2021, 9:41 pm
Location: London

Help with Jmorleys TextClock 1.2

Post 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:
Insert inspirational quote here
User avatar
CyberTheWorm
Posts: 766
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Help with Jmorleys TextClock 1.2

Post by CyberTheWorm »

Try to change

Code: Select all

ToolTipText=%A %B %d %Y
to

Code: Select all

ToolTipText=%2
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
Sam12345
Posts: 73
Joined: February 27th, 2021, 9:41 pm
Location: London

Re: Help with Jmorleys TextClock 1.2

Post 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:
Insert inspirational quote here
User avatar
CyberTheWorm
Posts: 766
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Help with Jmorleys TextClock 1.2

Post 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/
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
balala
Rainmeter Sage
Posts: 12546
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with Jmorleys TextClock 1.2

Post 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.
User avatar
Sam12345
Posts: 73
Joined: February 27th, 2021, 9:41 pm
Location: London

Re: Help with Jmorleys TextClock 1.2

Post 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:
Insert inspirational quote here