Skip to content

Instantly share code, notes, and snippets.

@yoonbae81
Created September 10, 2020 23:54
Show Gist options
  • Save yoonbae81/7be20a1cf9df7c8c2385ab2a4555be60 to your computer and use it in GitHub Desktop.
Save yoonbae81/7be20a1cf9df7c8c2385ab2a4555be60 to your computer and use it in GitHub Desktop.
Stretch Alarm
#SingleInstance
; get filename
SplitPath, A_ScriptName, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
; convert text to number
minutes := OutNameNoExt, minutes += 0
; set minutes 30 if the conversion above failed
if minutes is space
minutes := 30
MsgBox % "You will get remined every " . minutes . " minutes."
; calculate interval in ms
interval := minutes * 60 * 1000
Loop
{
Sleep %interval%
MsgBox, Take time to Stretch!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment