I'm new here in the forum and despair. Now I have the soft hope that you can help me.
Just do not laugh, with my english. I speak German and English does not suit me at all. That's what you read here, Aunt Google has translated me.
So my problem is my programmed alarm clock in my clock. If the alarm time is 00:00 (24 hour format), then I am always 0: 0 displayed. I can not get it if the set alarm time is 00: 00h, it is displayed to me as synonymous. Where is the mistake, I can not get it.
Who can help?
Here a Screenshot from my problem:
Here the Code (complete):
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Name=Alarm-Clock
Author=Youkai1977
Version=V1.0 <> 31.10.2018
Information=This Meter is a Part of Terminal-Skin Package
License=Creative Commons BY-NC-SA 3.0
;--------------------------------------------------
;--- VARIABLES & STYLES ---------------------------
;--------------------------------------------------
[Variables]
Images=#@#images\
ImgAlpha=230
SoundPath1=#@#sounds\chimehour.wav
SoundPath2=#@#sounds\alarmclock.wav
DigitColor=0,167,0,230
ValueHourSet=0
ValueMinuteSet=0
FS1=40
FS2=14
FS3=8
FS4=12
[Style1]
FontColor=#DigitColor#
FontFace=Square721 BT
StringAlign=LEFT
StringStyle=Bold
AntiAlias=1
[Style2]
FontColor=#DigitColor#
FontFace=CONSOLAS
StringAlign=LEFT
StringStyle=Bold
AntiAlias=1
;--------------------------------------------------
;--- MEASURES -------------------------------------
;--------------------------------------------------
;--- MEASURES CLOCK, CHIMESOUND & ALARM -----------
[MeasureTime]
Measure=Time
Format=%R
[MeasureSec]
Measure=Time
Format=%S
[MeasureChimeHour]
Measure=Time
Format=%M
IfEqualValue=0
IfEqualAction=[Play "#SoundPath1#"]
[MeasureMinMaxHourAlarm]
measure=calc
formula=#ValueHourSet#
DynamicVariables=1
ifconditionmode=1
IfCondition=(#ValueHourSet# < 0)
IfTrueAction=[!SetVariable ValueHourSet "23"]
IfCondition2=(#ValueHourSet# >= 24)
IfTrueAction2=[!SetVariable ValueHourSet "0"]
Disabled=1
Group=mALARM | ALARM
[MeasureMinMaxMinuteAlarm]
measure=calc
formula=#ValueMinuteSet#
DynamicVariables=1
ifconditionmode=1
IfCondition=(#ValueMinuteSet# < 0)
IfTrueAction=[!SetVariable ValueMinuteSet "55"]
IfCondition2=(#ValueMinuteSet# >= 60)
IfTrueAction2=[!SetVariable ValueMinuteSet "0"]
Disabled=1
Group=mALARM | ALARM
[MeasureDigitPrefixerAlarm]
Measure=calc
Formula=00
Dynamicvariables=1
IfCondition=(#ValueHourSet# >= 0) && (#ValueHourSet# <= 9)
IfTrueAction=[!SetOption HourAlarm Prefix "0"]
IfFalseAction=[!SetOption HourAlarm Prefix ""]
IfCondition2=(#ValueMinuteSet# >= 0) && (#ValueMinuteSet# <= 9)
IfTrueAction2=[!SetOption MinuteAlarm Prefix "0"]
IfFalseAction2=[!SetOption MinuteAlarm Prefix ""]
Disabled=1
Group=mALARM | ALARM
[MeasureHourAlarm]
Measure=Time
Format=%H
Disabled=1
Group=ALARM
[MeasureMinuteAlarm]
Measure=Time
Format=%M
Disabled=1
Group=ALARM
[Alarm]
Measure=calc
Formula=0
DynamicVariables=1
IfCondition=(MeasureHourAlarm = #ValueHourSet#) && (MeasureMinuteAlarm = #ValueMinuteSet#)
IfTrueAction=[PlayLoop #SoundPath2#][!Redraw]
Disabled=1
Group=ALARM
;--- MEASURE DATE ---------------------------------
[MeasureDate]
Measure=Time
Format=%d.%m.%Y
;--------------------------------------------------
;--- BACKGROUND -----------------------------------
;--------------------------------------------------
[Background]
Meter=Image
ImageName=#Images#bg_cl_we.png
AntiAlias=1
X=0
Y=0
W=270
H=82
[SetClockBG]
Meter=Image
SolidColor=0,0,0,1
X=0
Y=0
W=270
H=72
LeftMouseUpAction=[!ToggleMeasure MeasureChimeHour][!ToggleMeter ChimeSoundOFF][!Redraw]
MiddleMouseUpAction=[%windir%\system32\control.exe timedate.cpl]
RightMouseUpAction=[!EnableMeasureGroup ALARM][!DisableMeasure MeasureChimeHour][!ShowMeterGroup ALARMSET][!HideMeterGroup CLOCK][!HideMeter ChimeSoundOFF][!ShowMeter ChimeSoundALARM][!HideMeter SetClockBG][!Update]
;--------------------------------------------------
;--- CLOCK, ALARM ---------------------------------
;--------------------------------------------------
;--- Clock ----------------------------------------
[Time]
Meter=String
MeasureName=MeasureTime
MeterStyle=Style1
FontSize=#FS1#
X=0
Y=-2
Group=CLOCK
[Seconds]
Meter=String
MeasureName=MeasureSec
FontSize=#FS2#
MeterStyle=Style1
X=180r
Y=35r
Group=CLOCK
;--- Alarm ----------------------------------------
[AlarmBG]
Meter=Image
solidcolor=0,0,0,1
X=0
Y=0
W=270
H=72
Hidden=1
Group=ALARMSET
MouseLeaveAction=[!HideMeterGroup ALARMSET][!ShowMeterGroup CLOCK][!ShowMeter AlarmIconON][!ShowMeterGroup ALARMON][!HideMeter AlarmSetIcon][!Redraw]
[HourAlarm]
Meter=String
MeterStyle=Style1
FontSize=#FS1#
Text="#ValueHourSet#"
X=0
Y=-2
DynamicVariables=1
Hidden=1
Group=ALARMSET
MouseScrollUpAction=[!SetVariable ValueHourSet (#ValueHourSet#+1)][!UpdateMeasureGroup mALARM][!UpdateMeter HourAlarm][!Redraw]
MouseScrollDownAction=[!SetVariable ValueHourSet (#ValueHourSet#-1)][!UpdateMeasureGroup mALARM][!UpdateMeter HourAlarm][!Redraw]
[ColonAlarm]
Meter=string
MeterStyle=Style1
FontSize=#FS1#
Text=":"
X=76r
Y=r
Hidden=1
Group=ALARMSET
[MinuteAlarm]
Meter=String
MeterStyle=Style1
FontSize=#FS1#
Text="#ValueMinuteSet#"
X=20r
Y=r
DynamicVariables=1
Hidden=1
Group=ALARMSET
MouseScrollUpAction=[!SetVariable ValueMinuteSet (#ValueMinuteSet#+1)][!UpdateMeasureGroup mALARM][!UpdateMeter MinuteAlarm][!Redraw]
MouseScrollDownAction=[!SetVariable ValueMinuteSet (#ValueMinuteSet#-1)][!UpdateMeasureGroup mALARM][!UpdateMeter MinuteAlarm][!Redraw]
;--- DATE -----------------------------------------
[Day]
Meter=String
MeasureName=MeasureDate
MeterStyle=Style1
FontSize=#FS4#
X=80
Y=58
;--------------------------------------------------
;--- BUTTONS CLOCK/ALARM-SET ----------------------
;--------------------------------------------------
[ChimeSoundOFF]
Meter=Image
ImageName=#Images#Chime_off.png
ImageAlpha=#ImgAlpha#
AntiAlias=1
X=188
Y=10
W=16
H=16
ToolTipText="ChimeSound is OFF"
Hidden=1
[ChimeSoundALARM]
Meter=Image
ImageName=#Images#Chime_off.png
ImageAlpha=#ImgAlpha#
AntiAlias=1
X=r
Y=r
W=16
H=16
ToolTipText="Disabled in Alarm-Mode"
Hidden=1
[AlarmSetIcon]
Meter=Image
ImageName=#Images#setalarm.png
ImageAlpha=#ImgAlpha#
AntiAlias=1
X=22r
Y=r
W=24
H=16
Hidden=1
Group=ALARMSET
[AlarmSetText]
Meter=STRING
MeterStyle=Style2
FontSize=#FS3#
Text=SET
X=23r
Y=r
Hidden=1
Group=ALARMSET
[AlarmTimeON]
Meter=String
MeasureName=MeasureMinMaxHourAlarm
MeasureName2=MeasureMinMaxMinuteAlarm
MeterStyle=Style1
FontSize=#FS3#
Text=%1:%2
X=-18r
Y=-1r
Hidden=1
Group=ALARMON
LeftMouseUpAction=[!ShowMeterGroup ALARMSET][!HideMeterGroup CLOCK][!HideMeter AlarmIconON][!HideMeterGroup ALARMON][!ShowMeter AlarmSetIcon][!Redraw]
RightMouseUpAction=[!DisableMeasureGroup ALARM][!EnableMeasure MeasureChimeHour][!HideMeter AlarmIconON][!HideMeter AlarmTimeON][!HideMeter ChimeSoundALARM][PlayStop "#SoundPath2#"][!ShowMeter SetClockBG][!Redraw]
[AlarmIconON]
Meter=Image
ImageName=#Images#alarm_on.png
ImageAlpha=#ImgAlpha#
AntiAlias=1
X=-18r
Y=-1r
W=10
H=10
ToolTipText="Set/Stop Alarm"
Hidden=1
Group=ALARMON
LeftMouseUpAction=[!ShowMeterGroup ALARMSET][!HideMeterGroup CLOCK][!HideMeter AlarmIconON][!HideMeterGroup ALARMON][!ShowMeter AlarmSetIcon][!Redraw]
RightMouseUpAction=[!DisableMeasureGroup ALARM][!EnableMeasure MeasureChimeHour][!HideMeter AlarmIconON][!HideMeter AlarmTimeON][!HideMeter ChimeSoundALARM][PlayStop "#SoundPath2#"][!ShowMeter SetClockBG][!Redraw]
Greez Youkai1977