It is currently March 19th, 2019, 7:25 am

New SkinWidth / SkinHeight options

Changes made during the Rainmeter 3.3 beta cycle.
User avatar
sl23
Posts: 281
Joined: February 17th, 2011, 7:45 pm
Location: uk

Re: New SkinWidth / SkinHeight options

sl23 » September 25th, 2015, 1:45 pm

jsmorley wrote:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
SkinWidth=300
SkinHeight=100
BackgroundMode=2
SolidColor=0,0,0,1

[Variables]
DateX=301
StringWidth=0
StepSize=10
Iterations=0
U=[!UpdateMeasure SlideDate][!UpdateMeter *][!Redraw]

[MeasureTime]
Measure=Time
Format=%#I:%M %p

[MeasureDate]
Measure=Time
Format=%A, %B %#d, %Y

[MeterTime]
Meter=String
MeasureName=MeasureTime
X=290
Y=0
FontFace=Trebuchet MS
FontSize=40
FontColor=255,255,255,255
SolidColor=0,0,0,1
StringAlign=Right
AntiAlias=1
InlineSetting=Size | 20
InlinePattern=.*( \w\w)
InlineSetting2=Weight | 700
InlinePattern2=(.*) \w
MouseOverAction=[!CommandMeasure SlideDate "Stop 2"][!CommandMeasure SlideDate "Execute 1"]
MouseLeaveAction=[!CommandMeasure SlideDate "Stop 1"][!CommandMeasure SlideDate "Execute 2"]

[MeterDateStringWidth]
Meter=String
MeasureName=MeasureDate
FontFace=Trebuchet MS
FontSize=16
FontColor=0,0,0,0
AntiAlias=1
OnUpdateAction=[!SetVariable StringWidth "[MeterDateStringWidth:W]"][!SetVariable Iterations "(Ceil([MeterDateStringWidth:W]/#StepSize#))"][!UpdateMeasure SlideDate]
DynamicVariables=1

[MeterDate]
Meter=String
MeasureName=MeasureDate
X=(#DateX# + #StringWidth#)
Y=([MeterTime:Y] + [MeterTime:H] - 7)
FontFace=Trebuchet MS
FontSize=16
FontColor=255,255,255,255
SolidColor=0,0,0,1
StringAlign=Right
AntiAlias=1
DynamicVariables=1

[SlideDate]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideLeft, 10, #Iterations#
SlideLeft=[!SetVariable DateX "(Clamp(#DateX#-#StepSize#,(291-#StringWidth#),301))"]#U#
ActionList2=Repeat SlideRight, 10, #Iterations#
SlideRight=[!SetVariable DateX "(Clamp(#DateX#+#StepSize#,(291-#StringWidth#),301))"]#U#
DynamicVariables=1
Are you aware that using the SELECT ALL option and pasting into a text editor puts a space at the beginning of every line? This makes the code unusable, or at least it's not highlighting correctly in SynWrite, my text editor. Manually highlighting then right clicking and selecting Copy/Paste works fine.
Live for an ideal and leave no place in the mind for anything else
User avatar
jsmorley
Developer
Posts: 19046
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New SkinWidth / SkinHeight options

jsmorley » September 25th, 2015, 1:49 pm

sl23 wrote: Are you aware that using the SELECT ALL option and pasting into a text editor puts a space at the beginning of every line? This makes the code unusable, or at least it's not highlighting correctly in SynWrite, my text editor. Manually highlighting then right clicking and selecting Copy/Paste works fine.
No, it doesn't... At least not for me in Chrome or FireFox or Microsoft Edge, and using Notepad++ or Sublime Text or Windows Notepad.
User avatar
raiguard
Posts: 552
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: New SkinWidth / SkinHeight options

raiguard » November 9th, 2015, 9:31 pm

Yes! This will be very useful indeed! Thank you!
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017