This time, I will show you how to use the Task Scheduler and an audio playback program I created to ring an alarm at specified times.
* Audio playback programextensionOnly ".wav" is supported.
Download an audio playback program
Target file: "SoundPlay.exe" (Ver 1.0.0.0)
ハッシュ値(SHA256):a4d270a90cd5c51f26c0fe9b906dd6bc3e80eb2f17367aac7549d9670e1f86b8
Download "Sound Playback.zip"Unzipplease.
Set the alarm to ring at a specified time using the Task Scheduler
1. Press Windows Key + R to open Run, type the following command and press Enter:
taskschd.msc
2. Task Scheduler will open, so click on "Task Scheduler Library" on the left.
3. Click "Create Task" on the right.
4. "Create Task" will open, so enter the name you want to the right of "Name".
*Here we will refer to it as "time signal."
5. Open the Triggers tab and click New.
6. "New Trigger" will open,
- "Setting" = "Every day"
- "Start" = Today's "0:00:00"
- "Repeat interval" = "1 hour" (change it to any time you like)
- "Duration" = "Unlimited"
and click OK.
The time can be entered manually.
For example, if you delete the "1" from "1 hour" and change it to "2," it becomes "2 hours."
7. Open the Actions tab and click New.
8. The "New Action" dialog box will open. Enter the path to "PlaySound.exe" in "Program/script" and the path to the audio file you want to play in "Add arguments (optional)", then click OK.
Here, the path of "SoundPlay.exe" is
"E:\test\サウンド再生.exe"
The path to the audio file you want to play is
"C:\Windows\Media\Alarm01.wav"
will do.
The alarm sound file is located in the "C:\Windows\Media" folder.
9. On the "Conditions" tab, if you want the alarm to sound even when the computer is running on battery power, uncheck "Start the task only if the computer is on AC power."
10. Open the "Settings" tab, uncheck "Stop task after" and click OK.
This will create a task and play the specified audio once.
Check the "Next execution result" here.
*Since the task was created at "17:21:34", the "Next execution result" is "18:00:00".
For example, if you want the alarm to go off at 10 minutes past the hour, set "Start" in step 6 to "0:10:00" today.
If you want to check whether it is working properly, first try setting the "Repeat Interval" to "1 minute" and checking whether it rings normally every minute.
If you want to change the time, you can edit it by double-clicking the task or by right-clicking on the task and clicking "Properties".










Comment: