It is currently April 26th, 2024, 4:40 pm

Ping and glow action bounds to seconds.

Tips and Tricks from the Rainmeter Community
User avatar
achfighter
Posts: 4
Joined: November 11th, 2012, 7:18 pm

Ping and glow action bounds to seconds.

Post by achfighter »

I made a skin that animated meters with rotator meters, also meters must be pinging and glowing.

I tried some combinations and its done. Pinger bounds to seconds. Refresh it, reinstall it, pinger indicates corect angle and position everytime.

The most important thing:

Code: Select all

UpdateDivider=5
ValueRemainder=60
Dont use any rotation angle and start angle. So pinger can bound to seconds.

Font contains only numbers and needed letter yet: http://fontstruct.com/fontstructions/show/730318

Image

Code: Select all

[Rainmeter]
Update=100
BackgroundMode=1
Group=Ping
MiddleMouseDownAction=[!ToggleMeasureGroup "Ping"]

-----------------------------------------------------------------------------------------------
- VARIABLES -
-----------------------------------------------------------------------------------------------

[Variables]
FontName=JarvisiaLCD
Image1=#@#clock_pinger.png

-----------------------------------------------------------------------------------------------
- MEASURES -
-----------------------------------------------------------------------------------------------

[MeasureHour]
Measure=TIME
Format=%I

[MeasureMinute]
Measure=TIME
Format=%M

[MeasureSecond]
Measure=TIME
Format=%S

[ImageNumberCalc3]
Measure=Calc
Formula=Counter % 10

[ImageNumberCalc5]
Measure=Calc
Formula=Counter % 2
Group=Ping

-----------------------------------------------------------------------------------------------
- METERS -
-----------------------------------------------------------------------------------------------

[MeterHour]
Meter=String
MeasureName=MeasureHour
X=430
Y=76
FontFace=JarvisiaLCD
FontColor=53,153,70,240
FontSize=72
StringStyle=Bold
StringEffect=Shadow
StringAlign=Right
FontEffectColor=51,51,51,128
AntiAlias=1
DynamicVariables=1
Text=%1

[MeterAnimatimatedImage3]
Meter=Image
X=300
Y=0
W=200
H=200
DynamicVariables=1
ImageName=#@#ImagesFrames3\Frame[ImageNumberCalc3].png

[TextDot]
Meter=String
X=422
Y=64
FontFace=JarvisiaLCD
FontColor=53,153,70,240
FontSize=88
StringStyle=Bold
StringEffect=Shadow
StringAlign=Center
FontEffectColor=51,51,51,128
AntiAlias=1
Text=.


[MeterMinute]
MeasureName=MeasureMinute
Meter=String
X=406
Y=76
FontFace=JarvisiaLCD
FontColor=53,153,70,240
FontSize=42
StringStyle=Bold
StringEffect=Shadow
StringAlign=Left
FontEffectColor=51,51,51,128
AntiAlias=1
DynamicVariables=1
Text=%1

[MeterSecond]
MeasureName=MeasureSecond
Meter=String
X=467
Y=111
FontFace=JarvisiaLCD
FontColor=53,153,70,240
FontSize=18
StringStyle=Bold
StringEffect=Shadow
StringAlign=Right
FontEffectColor=51,51,51,128
StringAlign=Center
AntiAlias=1
DynamicVariables=1
Text=%1
Disabled=#DisableSeconds#

[MeterRotator]
MeasureName=MeasureSecond
Meter=ROTATOR
ImageName=#@#ImagesFrames14\Frame[ImageNumberCalc5].png
OffsetX=100
OffsetY=100
W=200
H=200
Color=ImageTint
ImageAlpha=240
UpdateDivider=5
ValueRemainder=60
DynamicVariables=1

;[MeterAnimatimatedImage5]
Meter=Image
X=300
Y=0
W=200
H=200
ImageName=#@#ImagesFrames14\Frame[ImageNumberCalc5].png

-----------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------
Last edited by achfighter on December 5th, 2012, 10:21 pm, edited 1 time in total.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Ping and glow action bounds to seconds.

Post by MerlinTheRed »

You might want to change ValueReminder into ValueRemainder. The first one is a typo that was introduced in a previous release of Rainmeter and kept due to backwards compatibility reasons. It has been spreading ever since. Do your part in exterminating it by changing your code ;)
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
achfighter
Posts: 4
Joined: November 11th, 2012, 7:18 pm

Re: Ping and glow action bounds to seconds.

Post by achfighter »

Thanks for your feedback and advice.