Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 975

Help: Rainmeter Skins • How do I make text shake?

$
0
0
I made a repeating 45 minute timer (though it could be configured to be any amount of time tbh - 5 seconds is good for testing) that plays a sound file and flashes orange when it goes off. I'd like to also have it shake when it goes off too. How would I do that?

Code:

[Rainmeter]Update=1000                      ; Update once per secondDynamicWindowSize=1AccurateText=1BackgroundMode=2SolidColor=0,0,0,0               ; Transparent backgroundDraggable=1                      ; Allow the skin to be movedRightMouseUpAction=[!SkinCustomMenu]ContextTitle="Reset Timer"ContextAction=[!PauseMeasure MeasureTimer][!CommandMeasure MeasureTimer "Reset"][!CommandMeasure MeasureFlashSequence "Stop 1"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw][Variables]; Timer settingsTimerDuration=2700                  ; (Test duration; change to 2700 for 45 minutes)TimerPaused=1                    ; Timer paused by default; Sound file – place your alarm.wav in the @Resources folderSoundFile=#@#alarm.wav[MeasureTimer]Measure=LoopStartValue=#TimerDuration#EndValue=0Increment=-1LoopCount=0                      ; Endless loopPaused=1                         ; Start pausedDynamicVariables=1OnChangeAction=[!UpdateMeasure MeasureAlarm][MeasureAlarm]Measure=CalcFormula=([MeasureTimer]=0)?1:0DynamicVariables=1IfCondition=MeasureAlarm=1IfTrueAction=[Play "#SoundFile#"][!CommandMeasure MeasureFlashSequence "Execute 1"]IfCondition2=MeasureAlarm=0IfTrueAction2=[!CommandMeasure MeasureFlashSequence "Stop 1"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]; Use ActionTimer plugin for explicit flash sequence[MeasureFlashSequence]Measure=PluginPlugin=ActionTimerGroup=FlashActionList1=Orange | Wait 300 | White | Wait 300 | Orange | Wait 300 | White | Wait 300 | Orange | Wait 300 | White | Wait 300 | ResetTimerOrange=[!SetOption MeterTimerDisplay FontColor "255,192,0"][!UpdateMeter MeterTimerDisplay][!Redraw]White=[!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]ResetTimer=[!CommandMeasure MeasureTimer "Reset"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]DynamicVariables=1[MeasureTimerMinutes]Measure=CalcFormula=Floor([MeasureTimer] / 60)DynamicVariables=1[MeasureTimerSeconds]Measure=CalcFormula=[MeasureTimer] % 60DynamicVariables=1RegExpSubstitute=1Substitute="^(\d)$":"0\1"[MeterTimerDisplay]Meter=StringMeasureName=MeasureTimerMinutesMeasureName2=MeasureTimerSecondsX=150Y=60FontSize=50FontWeight=700                 ; Bold textFontColor=255,255,255StringAlign=CenterCenterText=%1:%2DynamicVariables=1AntiAlias=1SolidColor=0,0,0,0             ; Transparent backgroundLeftMouseUpAction=[!SetVariable TimerPaused (1-#TimerPaused#)][!WriteKeyValue Variables TimerPaused #TimerPaused#][!TogglePauseMeasure MeasureTimer]

Statistics: Posted by Tiffany — Yesterday, 11:01 pm — Replies 4 — Views 97



Viewing all articles
Browse latest Browse all 975

Trending Articles