It is currently April 27th, 2024, 3:26 pm

Use SetClip to copy current date

Get help with creating, editing & fixing problems with skins
Smorkster
Posts: 19
Joined: April 30th, 2012, 12:33 pm

Use SetClip to copy current date

Post by Smorkster »

Hello!
I have created a skin to show some time date (i.e. time/date/week).
For one of the meter I want the function of when I click it, it will copy the current date (YYYY-MM-DD) to Windows Clipboard.
I have tried all I can think of and searched around for answers, but nothing works.
Anyone have wanna help? :)

Current skin (deleted some meter to save space):

Code: Select all

[mesDate]
Measure=Time
Format=%Y - %m - %d

[metDate]
Meter=String
MeasureName=mesDate
X=1R
Y=0r
H=20
W=106
MeterStyle=TextStyle
LeftMouseUpAction=[!SetClip "%Y-%m-%d"]]
StringAlign=CENTER
DynamicVariables=1
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Use SetClip to copy current date

Post by poiru »

It should be:

Code: Select all

LeftMouseUpAction=[!SetClip "[mesDate]"]
Smorkster
Posts: 19
Joined: April 30th, 2012, 12:33 pm

Re: Use SetClip to copy current date

Post by Smorkster »

Thanks a lot