Created an alarm app with AutoHotkey.
Features
- Notification
- Wait 6 hours
- Notification
- Unmute if muted
- Set volume to 14
- Execute music file: YouTube URLs also work
- Automatically mute after 30 minutes + restore volume
Feel free to change the time and volume values to suit your needs.
Script
#If GetKeyState("a", "P")
F1::reload
NumpadEnd::
TrayTip, ใขใฉใผใ , ๏ผๆ้ๅพใซใขใฉใผใ ใ่จญๅฎใใพใใใ, 1
; sleep, 3000
sleep, 21600000
TrayTip, ใขใฉใผใ , ๆ้ใงใใ, 1
;ใใฅใผใใชใใใฅใผใ่งฃ้ค
SoundGet, MuteState, Master, Mute
if ErrorLevel
{
MsgBox, %ErrorLevel%
Return
}
if MuteState=On
{
MuteState=1
}
if MuteState=1
{
Send, {Volume_Mute}
}
SoundGet, master_volume
;้ณ้
SoundSet, 14
; ๆฒใๆๅฎ
;run, "C:\_musics\flac\ๆฒๅ.flac"
; youtube
;run, "https://www.youtube.com/watch?v=upZml93BWZw"
; 30ๅ็ต้ใง่ชๅ็ใซใใฅใผใใซใใ๏ผ้ณ้ใๆปใ
; sleep, 3000
sleep, 1800000
Send, {Volume_Mute}
SoundSet, master_volume
return
#If
Usage
a key + numpadEND: Set alarm
a key + F1: Reset/cancel alarm