[Rainmeter] AccurateText=1 DefaultAlwaysOnTop=-2 DefaultWindowX=160R DefaultWindowY=0 DynamicWindowSize=1 Update=1000 Group=Chronometer MouseOverAction=[!SetOption MeterSettingsButton ImageAlpha 255][!UpdateMeter "MeterSettingsButton"][!HideMeter MeterChime][!UpdateMeter MeterChime][!Redraw] MouseLeaveAction=[!SetOption MeterSettingsButton ImageAlpha 0][!UpdateMeter "MeterSettingsButton"][!ShowMeter MeterChime][!UpdateMeter MeterChime][!Redraw] MiddleMouseUpAction=[!Refresh] [Metadata] Name=Chronometer Author=SilverAzide Information=Digital clock with uptime, event countdown, and alarms.||Inspired by Digital Clock gadget by AddGadgets.com. License=Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Version=6.0.2 ;################################################################################################### ; Chronometer ;################################################################################################### [Variables] @Include="#@#ChronometerVariables.inc" @Include2="#CURRENTPATH#ChronometerOptions.inc" ; background and positioning ;DAS added HideDWQ=1 ;DAS BgHeight=(136 - (([#*UptimeHidden*] && [#*LogonHidden*]) * 5) - ([#*UptimeHidden*] * 12) - ([#*LogonHidden*] * 12) - ([#*EventHidden*] * 29) - ([#*ClockNameHidden*] * 15)) BgHeight=(136 - (([#*UptimeHidden*] && [#*LogonHidden*]) * 5) - ([#*UptimeHidden*] * 12) - ([#*LogonHidden*] * 12) - ([#*EventHidden*] * 29) - ([#*ClockNameHidden*] * 15) - ([#*HideDWQ*] * 12)) BgWidth=160 ColorBg=0,0,0 GridPosX=8 ; dynamic variables; do not change Restart=0 ;/////////////////////////////////////////////////////////////////////////////////////////////////// ; Styles ;/////////////////////////////////////////////////////////////////////////////////////////////////// [StyleTextInfo] FontSize=#FontSize1# FontFace=#FontName# StringAlign=Left X=#TextPosX# Y=12r AntiAlias=1 DynamicVariables=1 TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale# [StyleSeparator] SolidColor=#ColorInfoText1#,128 Antialias=1 H=1 W=(#BgWidth# - ((#GridPosX# + 1) * 2)) X=#GridPosX# DynamicVariables=1 TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale# ;/////////////////////////////////////////////////////////////////////////////////////////////////// ; Measures ;/////////////////////////////////////////////////////////////////////////////////////////////////// [SettingsScript] Measure=Script ScriptFile="#@#Settings.lua" ConfigGroupName="Chronometer" VariablesFile="#@#ChronometerVariables.inc" UpdateDivider=-1 ;-------------------------------------------- Registry --------------------------------------------- ; LocaleName = "en-US" [MeasureLocaleName] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Control Panel\International RegValue=LocaleName IfMatch="^#LocaleName#$" IfNotMatchAction=[!SetVariable LocaleName "[MeasureLocaleName]"[!SetVariable Restart 1] DynamicVariables=1 Disabled=#DisableLocale# ; iTLZero = 0 -> no leading zeros on hours (6:04 PM) ; 1 -> leading zeros on hours (06:04 PM) ; [MeasureTimeLeadingZero] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Control Panel\International RegValue=iTLZero IfCondition=(MeasureTimeLeadingZero <> #TimeLZero#) IfTrueAction=[!SetVariable TimeLZero "[MeasureTimeLeadingZero]"][!SetVariable Restart 1] DynamicVariables=1 Disabled=#DisableLocale# ; iTime = 0 -> 12-hour clock ; 1 -> 24-hour clock ; [MeasureTimeStyle] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Control Panel\International RegValue=iTime IfCondition=(MeasureTimeStyle <> #TimeStyle#) IfTrueAction=[!SetVariable TimeStyle "[MeasureTimeStyle]"][!SetVariable Restart 1] DynamicVariables=1 Disabled=#DisableLocale# ; sLongDate = "dddd, MMMM d, yyyy" ; yyyyy = 5-digit year (00001-99999) ; yyyy = 4-digit year (0001-9999) ; yyy = 3-digit year (001-9999) ; yy = 2-digit year (01-99) ; y = 1-digit year (1-99) ; MMMM = month name ("August"); note: always uses abbreviated month names due to space constraints ; MMM = abbreviated month name ("Aug") ; MM = month number, leading zero (01-12) ; M = month number, no leading zero (1-12) ; dddd = day name ("Friday") ; ddd = abbreviated day name ("Fri") ; dd = day number, leading zero (01-31) ; d = day number, no leading zero (1-31) ; [MeasureLongDate] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Control Panel\International RegValue=sLongDate Substitute="y":"@","@@@@@":"%Y","@@@@":"%Y","@@@":"%y","@@":"%y","@":"%#y","M":"@","@@@@":"%b","@@@":"%b","@@":"%m","@":"%#m","d":"@","@@@@":"%A","@@@":"%a","@@":"%d","@":"%#d" IfMatch="^#FmtLongDate#$" IfNotMatchAction=[!SetVariable FmtLongDate "[MeasureLongDate]"][!SetVariable Restart 1] DynamicVariables=1 Disabled=#DisableLocale# ; get clock display format from sShortTime; sShortTime = "h:mm:ss tt" ; HH = hour, zero-based 24-hour, leading zero (00-23) ; H = hour, zero-based 24-hour, no leading zero (0-23) ; hh = hour, 12-hour, leading zero (01-12) ; h = hour, 12-hour, no leading zero (1-12) ; mm = minute, leading zero (00-59) ; m = minute, no leading zero (0-59) ; ss = seconds, leading zero (00-59); note: this option is stripped from the format ; s = seconds, no leading zero (0-59); note: this option is stripped from the format ; tt = AM/PM designator; note: this option is stripped from the format ; t = abbreviated AM/PM designator (A/P); note: this option is stripped from the format ; [MeasureClockFormat] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Control Panel\International RegValue=sShortTime Substitute="H":"@","@@":"%H","@":"%#H","h":"@","@@":"%I","@":"%#I","m":"@","@@":"%M","@":"%#M",":ss":"",":s":"","t":""," ":"" IfMatch="^#FmtClock#$" IfNotMatchAction=[!SetVariable FmtClock "[MeasureClockFormat]"][!SetVariable Restart 1] DynamicVariables=1 Disabled=#DisableLocale# ; check if restart required [MeasureRestart] Measure=Calc IfCondition=(#Restart# = 1) IfTrueAction=[!Log "System date/time format change detected, restarting!" Notice][!CommandMeasure SettingsScript "SetVariables(1, {'LocaleName', '#LocaleName#'}, {'TimeLZero', '#TimeLZero#'}, {'TimeStyle', '#TimeStyle#'}, {'FmtLongDate', '#FmtLongDate#'}, {'FmtClock', '#FmtClock#'})"] DynamicVariables=1 Disabled=#DisableLocale# ;---------------------------------------------- Time ----------------------------------------------- [MeasureTime] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format=#FmtClock# DynamicVariables=1 [MeasureTimeAMPM] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format="%p" Disabled=#TimeStyle# DynamicVariables=1 [MeasureHour24] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%#H" DynamicVariables=1 [MeasureHour12] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%#I" DynamicVariables=1 [MeasureMinutes] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%#M" DynamicVariables=1 [MeasureSeconds] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%S" [MeasureDate] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format=#FmtLongDate# DynamicVariables=1 [MeasureDay] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format="%#j" DynamicVariables=1 [MeasureDayName] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale="en-US" Format="%a" DynamicVariables=1 ; week of year (1-52 or 1-53) based on the ISO standard [MeasureWeek] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format="%#V" DynamicVariables=1 ; variant week calculation: week of year (1-53) where week 1 starts on the first day of the year and ; continues to the seventh day of the year ;[MeasureWeek] ;Measure=Calc ;Formula=Ceil([MeasureDay] / 7) [MeasureMonth] Measure=Time TimeZone=#TzOffset# DaylightSavingTime=#UseDST# FormatLocale=#LocaleName# Format="%#m" DynamicVariables=1 [MeasureQuarter] Measure=Calc Formula=Ceil([MeasureMonth] / 3) ;-------------------------------------- Uptime and Logon Time -------------------------------------- [MeasureUptime] Measure=Uptime Format="%4!i!d %3!i!h %2!i!m %1!i!s" DynamicVariables=1 Disabled=#UptimeHidden# [MeasureLocalTime] Measure=Time TimeZone=local DaylightSavingTime=1 ; the Format value is only used for show in the About window Format="%Y-%m-%d %I:%M:%S %p" DynamicVariables=1 Disabled=#LogonHidden# [MeasureUserLogon] Measure=Plugin Plugin=SysInfo SysInfoType=USER_LOGONTIME DynamicVariables=1 Disabled=#LogonHidden# [MeasureUserLogonTime] Measure=Time TimeStamp=[MeasureUserLogon] ; the Format value is only used for show in the About window Format="%Y-%m-%d %I:%M:%S %p" DynamicVariables=1 Disabled=#LogonHidden# [MeasureUserDiff] Measure=Uptime SecondsValue=([MeasureLocalTime:timestamp] - [MeasureUserLogonTime:timestamp]) Format="%4!i!d %3!i!h %2!i!m %1!i!s" DynamicVariables=1 Disabled=#LogonHidden# ;---------------------------------------------- Chime ---------------------------------------------- [MeasureChimeDiff] Measure=Calc Formula=(([MeasureHour24] * 60 * 60) + ([MeasureMinutes] * 60) + [MeasureSeconds]) % #ChimeInterval# IfCondition=([MeasureChimeDiff] = 0) IfTrueAction=[!CommandMeasure MeasureChimeLoop "Reset"][!EnableMeasure "MeasureChimeLoop"] DynamicVariables=1 Disabled=#ChimeDisabled# [MeasureChimeLoop] Measure=Loop StartValue=0 EndValue=#ChimeDuration# Increment=1 LoopCount=1 IfCondition=(MeasureChimeLoop = 0) && (#ChimeDuration# = 1) IfTrueAction=[Play #ChimeSound#] IfCondition2=(MeasureChimeLoop = 0) && (#ChimeDuration# > 1) IfTrueAction2=[PlayLoop #ChimeSound#] IfCondition3=((MeasureChimeLoop % 2) = 1) && (#ChimeDuration# > 1) IfTrueAction3=[!SetOption MeterChime FontColor "#*PaletteColor4*#"][!UpdateMeter "MeterChime"][!SetOption MeterStopSoundButton FontColor "#*PaletteColor4*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfFalseAction3=[!SetOption MeterChime FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterChime"][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfCondition4=(MeasureChimeLoop = #ChimeDuration#) && (#ChimeDuration# > 1) IfTrueAction4=[PlayStop][!SetOption MeterChime FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterChime"][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!DisableMeasure "MeasureChimeLoop"][!Redraw] DynamicVariables=1 Disabled=1 ;----------------------------------------- Event Countdown ----------------------------------------- [MeasureEventTime] Measure=Time TimeStamp=#EventTime# TimeStampFormat=%Y-%m-%d %H:%M:%S TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%Y-%m-%d %H:%M:%S" DynamicVariables=1 Disabled=#EventHidden# [MeasureEventDiff] Measure=Uptime SecondsValue=(Max(0, [MeasureEventTime:timestamp] - [MeasureTime:timestamp])) Format="%4!i!d %3!i!h %2!i!m %1!i!s" IfCondition=([MeasureEventDiff:timestamp] > 0) IfTrueAction=[!SetOption MeterEvent "FontColor" "#*ColorInfoText1*#"][!UpdateMeter "MeterEvent"][!Redraw] IfFalseAction=[!SetOption MeterEvent "FontColor" "#*PaletteColor4*#"][!UpdateMeter "MeterEvent"][!Redraw] IfCondition2=([MeasureEventTime:timestamp] = [MeasureTime:timestamp]) && (#EventSoundDisabled# = 0) IfTrueAction2=[!CommandMeasure MeasureEventLoop "Reset"][!EnableMeasure "MeasureEventLoop"] DynamicVariables=1 Disabled=#EventHidden# [MeasureEventLoop] Measure=Loop StartValue=0 EndValue=#EventDuration# Increment=1 LoopCount=1 IfCondition=(MeasureEventLoop = 0) && (#EventDuration# = 1) IfTrueAction=[PlayLoop #EventSound#] IfCondition2=(MeasureEventLoop = 0) && (#EventDuration# > 1) IfTrueAction2=[PlayLoop #EventSound#] IfCondition3=((MeasureEventLoop % 2) = 1) && (#EventDuration# > 1) IfTrueAction3=[!SetOption MeterStopSoundButton FontColor "#*PaletteColor4*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfFalseAction3=[!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfCondition4=(MeasureEventLoop = #EventDuration#) && (#EventDuration# > 1) IfTrueAction4=[PlayStop][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!DisableMeasure "MeasureEventLoop"][!Redraw] DynamicVariables=1 Disabled=1 ;--------------------------------------------- Alarm 1 --------------------------------------------- [MeasureAlarm1Time] Measure=Time TimeStamp="1601-01-01 #Alarm1Time#:00" TimeStampFormat=%Y-%m-%d %H:%M:%S TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%H:%M" DynamicVariables=1 Disabled=#Alarm1Disabled# [MeasureAlarm1Day] Measure=String String=#Alarm1Days# IfMatch=[MeasureDayName] IfMatchAction=[!EnableMeasure "MeasureAlarm1Diff"] IfNotMatchAction=[!DisableMeasure "MeasureAlarm1Diff"] DynamicVariables=1 Disabled=#Alarm1Disabled# [MeasureAlarm1Diff] Measure=Calc Formula=([MeasureAlarm1Time:timestamp] - (([MeasureHour24] * 60 * 60) + ([MeasureMinutes] * 60) + [MeasureSeconds])) IfCondition=([MeasureAlarm1Diff] = 0) IfTrueAction=[!CommandMeasure MeasureAlarm1Loop "Reset"][!EnableMeasure "MeasureAlarm1Loop"] DynamicVariables=1 Disabled=#Alarm1Disabled# [MeasureAlarm1Loop] Measure=Loop StartValue=0 EndValue=#Alarm1Duration# Increment=1 LoopCount=1 IfCondition=(MeasureAlarm1Loop = 0) && (#Alarm1Duration# = 1) IfTrueAction=[PlayLoop #Alarm1Sound#] IfCondition2=(MeasureAlarm1Loop = 0) && (#Alarm1Duration# > 1) IfTrueAction2=[PlayLoop #Alarm1Sound#] IfCondition3=((MeasureAlarm1Loop % 2) = 1) && (#Alarm1Duration# > 1) IfTrueAction3=[!SetOption MeterStopSoundButton FontColor "#*PaletteColor4*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfFalseAction3=[!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfCondition4=(MeasureAlarm1Loop = #Alarm1Duration#) && (#Alarm1Duration# > 1) IfTrueAction4=[PlayStop][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!DisableMeasure "MeasureAlarm1Loop"][!Redraw] DynamicVariables=1 Disabled=1 ;--------------------------------------------- Alarm 2 --------------------------------------------- [MeasureAlarm2Time] Measure=Time TimeStamp="1601-01-01 #Alarm2Time#:00" TimeStampFormat=%Y-%m-%d %H:%M:%S TimeZone=#TzOffset# DaylightSavingTime=#UseDST# Format="%H:%M" DynamicVariables=1 Disabled=#Alarm2Disabled# [MeasureAlarm2Day] Measure=String String=#Alarm2Days# IfMatch=[MeasureDayName] IfMatchAction=[!EnableMeasure "MeasureAlarm2Diff"] IfNotMatchAction=[!DisableMeasure "MeasureAlarm2Diff"] DynamicVariables=1 Disabled=#Alarm2Disabled# [MeasureAlarm2Diff] Measure=Calc Formula=([MeasureAlarm2Time:timestamp] - (([MeasureHour24] * 60 * 60) + ([MeasureMinutes] * 60) + [MeasureSeconds])) IfCondition=([MeasureAlarm2Diff] = 0) IfTrueAction=[!CommandMeasure MeasureAlarm2Loop "Reset"][!EnableMeasure "MeasureAlarm2Loop"] DynamicVariables=1 Disabled=#Alarm2Disabled# [MeasureAlarm2Loop] Measure=Loop StartValue=0 EndValue=#Alarm2Duration# Increment=1 LoopCount=1 IfCondition=(MeasureAlarm2Loop = 0) && (#Alarm2Duration# = 1) IfTrueAction=[PlayLoop #Alarm2Sound#] IfCondition2=(MeasureAlarm2Loop = 0) && (#Alarm2Duration# > 1) IfTrueAction2=[PlayLoop #Alarm2Sound#] IfCondition3=((MeasureAlarm2Loop % 2) = 1) && (#Alarm2Duration# > 1) IfTrueAction3=[!SetOption MeterStopSoundButton FontColor "#*PaletteColor4*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfFalseAction3=[!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!Redraw] IfCondition4=(MeasureAlarm2Loop = #Alarm2Duration#) && (#Alarm2Duration# > 1) IfTrueAction4=[PlayStop][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#"][!UpdateMeter "MeterStopSoundButton"][!DisableMeasure "MeasureAlarm2Loop"][!Redraw] DynamicVariables=1 Disabled=1 ;---------------------------------------------- Config --------------------------------------------- [CalcNumHourDigits] Measure=Calc Formula=((#TimeLZero# = 1) || ((#TimeStyle# = 1) && ([MeasureHour24] > 9)) || ((#TimeStyle# = 0) && ([MeasureHour12] > 9))) ? 2 : 1 DynamicVariables=1 [CalcSoundConfig] Measure=Calc ; if all sounds disabled, hide mute button and chime indicator IfCondition=(#Alarm1Disabled# = 1) && (#Alarm2Disabled# = 1) && (#EventSoundDisabled# = 1) && (#ChimeDisabled# = 1) IfTrueAction=[!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#,0"][!DisableMouseAction MeterStopSoundButtonMouseRegion "LeftMouseUpAction"][!UpdateMeter "MeterStopSoundButton"][!SetOption MeterChime FontColor "#*ColorFontSubtitle*#,0"][!UpdateMeter "MeterChime"][!Redraw] ; if at least one sound enabled, show mute button IfCondition2=(#Alarm1Disabled# = 0) || (#Alarm2Disabled# = 0) || (#EventSoundDisabled# = 0) || (#ChimeDisabled# = 0) IfTrueAction2=[!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#,255"][!EnableMouseAction MeterStopSoundButtonMouseRegion "LeftMouseUpAction"][!UpdateMeter "MeterStopSoundButton"][!Redraw] ; if chime enabled, show chime indicator IfCondition3=(#ChimeDisabled# = 0) IfTrueAction3=[!SetOption MeterChime FontColor "#*ColorFontSubtitle*#,255"][!UpdateMeter "MeterChime"][!Redraw] ; if at least one alarm/event sound enabled and chime disabled, gray out chime indicator IfCondition4=((#Alarm1Disabled# = 0) || (#Alarm2Disabled# = 0) || (#EventSoundDisabled# = 0)) && (#ChimeDisabled# = 1) IfTrueAction4=[!SetOption MeterChime FontColor "128,128,128,255"][!UpdateMeter "MeterChime"][!Redraw] DynamicVariables=1 ;/////////////////////////////////////////////////////////////////////////////////////////////////// ; Meters ;/////////////////////////////////////////////////////////////////////////////////////////////////// ;------------------------------------------- Background -------------------------------------------- [MeterBackground] Meter=Shape Shape=Rectangle 0,0,(#BgWidth# * #Scale#),(#BgHeight# * #Scale#) | Fill Color #ColorBg#,1 | StrokeWidth 0 Shape2=Rectangle (4 * #Scale#),(4 * #Scale#),((#BgWidth# - 8) * #Scale#),((#BgHeight# - 8) * #Scale#),6 | Fill Color #ColorBg#,((#BgStyle# = 0) ? #BgAlpha# / 2 : ((#BgStyle# = 1) ? #BgAlpha# / 3 : 0)) | StrokeWidth 0 Shape3=Rectangle (5 * #Scale#),(5 * #Scale#),((#BgWidth# - 10) * #Scale#),((#BgHeight# - 10) * #Scale#),4 | Fill Color #ColorBg#,((#BgStyle# = 0) ? #BgAlpha# : ((#BgStyle# = 1) ? #BgAlpha# / 3 : 0)) | StrokeWidth 0 Shape4=Rectangle (6 * #Scale#),(6 * #Scale#),((#BgWidth# - 12) * #Scale#),((#BgHeight# - 12) * #Scale#),1 | Fill Color ((#BgStyle# = 0) ? 164 : 0),((#BgStyle# = 0) ? 160 : 0),((#BgStyle# = 0) ? 160 : 0),((#BgStyle# = 0) ? #BgAlpha# : ((#BgStyle# = 1) ? #BgAlpha# / 3 : #BgAlpha#)) | StrokeWidth 0 Shape5=Rectangle (7 * #Scale#),(7 * #Scale#),((#BgWidth# - 14) * #Scale#),((#BgHeight# - 14) * #Scale#),1 | Fill LinearGradient MyFillGradient | StrokeWidth 0 MyFillGradient=270 | ((#BgStyle# = 0) ? 70 : 0),((#BgStyle# = 0) ? 70 : 0),((#BgStyle# = 0) ? 70 : 0),#BgAlpha# ; 0.0 | #ColorBg#,#BgAlpha# ; 1.0 DynamicVariables=1 [MeterSettingsButton] Meter=Image ImageName="#@#Settings.png" ImageAlpha=0 Antialias=1 X=(#BgWidth# - 12 - 11) Y=8 W=12 H=12 DynamicVariables=1 TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale# [MeterSettingsButtonMouseRegion] Meter=Image SolidColor=0,0,0,1 X=([MeterSettingsButton:X] * #Scale#) Y=([MeterSettingsButton:Y] * #Scale#) W=([MeterSettingsButton:W] * #Scale#) H=([MeterSettingsButton:H] * #Scale#) ToolTipText="Settings" LeftMouseUpAction=[!ToggleConfig "#CURRENTCONFIG#\Config" "Settings.ini"] DynamicVariables=1 [MeterStopSoundButton] Meter=String MeterStyle=StyleTextInfo FontFace="Verdana" FontColor=128,128,128,255 FontSize=11 Text="♪" X=#TextPosX# Y=5 W=12 H=12 [MeterStopSoundButtonMouseRegion] Meter=String SolidColor=0,0,0,1 X=([MeterStopSoundButton:X] * #Scale#) Y=(([MeterStopSoundButton:Y] + 5) * #Scale#) W=([MeterStopSoundButton:W] * #Scale#) H=([MeterStopSoundButton:H] * #Scale#) ToolTipText="Mute" LeftMouseUpAction=[PlayStop][!DisableMeasure MeasureChimeLoop][!DisableMeasure MeasureAlarm1Loop][!DisableMeasure MeasureAlarm2Loop][!DisableMeasure MeasureEventLoop][!UpdateMeasure CalcSoundConfig][!UpdateMeterGroup ClockBg][!SetOption MeterStopSoundButton FontColor "#*ColorFontSubtitle*#,255"][!Redraw] DynamicVariables=1 [MeterChime] Meter=String MeterStyle=StyleTextInfo FontFace="Wingdings" FontColor=128,128,128,255 FontSize=#FontSize2# Text="Ÿ" X=(#BgWidth# - (#TextPosX# + 7)) Y=6 ;---------------------------------------------- Text ----------------------------------------------- [MeterTitleText] Meter=String FontColor=#ColorFontTitle# FontSize=#FontSize2# FontFace=#FontName# FontWeight=#FontWtBold# StringAlign=Center AntiAlias=1 Text=#ClockName# ClipString=1 W=110 H=16 X=(#BgWidth# / 2) Y=(5 - (#ClockNameHidden# * 15)) DynamicVariables=1 TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale# Hidden=#ClockNameHidden# [MeterTime] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureTime FontColor=#ColorInfoText1# FontSize=18 FontWeight=#FontWtBold# StringAlign=Right Text="%1" ; 1 digit hour x:xx = ~46px, 2-digit hour xx:xx = ~59px, AM/PM = ~22px X=((#BgWidth# / 2) + (([CalcNumHourDigits] = 1) ? 0 : 7) + (#TimeStyle# = 0 ? 0 : 11)) Y=10r DynamicVariables=1 [MeterSeconds] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureSeconds FontColor=#ColorInfoText1# FontSize=14 FontWeight=#FontWtBold# Text="%1" X=1r Y=6r [MeterTimeAMPM] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureTimeAMPM FontColor=#ColorInfoText1# FontSize=10 FontWeight=#FontWtBold# Text="%1" X=2R Y=6r Hidden=#TimeStyle# [MeterDate] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureDate FontColor=#ColorFontSubtitle# StringAlign=Center ClipString=1 Text="%1" W=(#BgWidth# - 14 - 4) H=14 X=((#BgWidth# / 2) - 1) Y=14r [MeterDay] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureDay FontColor=#ColorFontSubtitle2# FontSize=#FontSizeS# Text="Day: %1" Y=15r ;DAS added Hidden=#HideDWQ# [MeterWeek] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureWeek FontColor=#ColorFontSubtitle2# FontSize=#FontSizeS# Text="Week: %1" X=13R Y=0r ;DAS added Hidden=#HideDWQ# [MeterQuarter] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureQuarter FontColor=#ColorFontSubtitle2# FontSize=#FontSizeS# StringAlign=Right Text="Quarter: %1" X=(#BgWidth# - (#TextPosX# + 2)) Y=0r ;DAS added Hidden=#HideDWQ# ;--------------------------------------------- Uptime ---------------------------------------------- [MeterSeparator1] Meter=Image MeterStyle=StyleSeparator Y=14r Hidden=(#UptimeHidden# && #LogonHidden#) [MeterUptimePrompt] Meter=String MeterStyle=StyleTextInfo FontColor=#ColorInfoText2# Text="Uptime:" Y=(1 * ((#UptimeHidden# + 1) % 2))r Hidden=#UptimeHidden# [MeterUptime] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureUptime FontColor=#ColorInfoText2# Text="%1" X=(#TextPosX# + 42) Y=0r Hidden=#UptimeHidden# [MeterUserLogonPrompt] Meter=String MeterStyle=StyleTextInfo FontColor=#ColorInfoText2# Text="Logon:" Y=(#UptimeHidden# ? (1 * ((#LogonHidden# + 1) % 2)) : (12 * ((#LogonHidden# + 1) % 2)))r Hidden=#LogonHidden# [MeterUserLogon] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureUserDiff FontColor=#ColorInfoText2# Text="%1" X=(#TextPosX# + 42) Y=0r Hidden=#LogonHidden# ;----------------------------------------- Event Countdown ----------------------------------------- [MeterSeparator2] Meter=Image MeterStyle=StyleSeparator Y=(16 * ((#EventHidden# + 1) % 2) * (((#UptimeHidden# && #LogonHidden#) + 1) % 2))r Hidden=#EventHidden# [MeterEventPrompt] Meter=String MeterStyle=StyleTextInfo FontColor=#ColorInfoText1# ClipString=1 Text="#EventName#:" W=(#BgWidth# - 14 - 4) H=14 Y=(1 * ((#EventHidden# + 1) % 2))r Hidden=#EventHidden# [MeterEvent] Meter=String MeterStyle=StyleTextInfo MeasureName=MeasureEventDiff FontColor=#ColorInfoText1# Text="%1" X=#TextPosX# Y=(12 * ((#EventHidden# + 1) % 2))r Hidden=#EventHidden#