Created
September 10, 2020 23:54
-
-
Save yoonbae81/7be20a1cf9df7c8c2385ab2a4555be60 to your computer and use it in GitHub Desktop.
Stretch Alarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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