Windows 10 Autohotkey Alarm Clock App

[Windows 10] Creating an Alarm Clock App with Autohotkey

Created an alarm app with wake-up functionality using AutoHotkey.

Shou Arisaka
1 min read
Oct 15, 2025

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

Share this article

Shou Arisaka Oct 15, 2025

๐Ÿ”— Copy Links