DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: simple (crude even) alarm clock  (Read 6,634 times)

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 413
simple (crude even) alarm clock
« on: May 31, 2012, 09:42 AM »
I wrote this one to discipline my work hours and increase my productivity. It's a very very crude alarm clock that you control with the Scroll Lock key.

Press the scroll lock key once and it asks you when should the alarm bell ring. Enter desired time in the HHmm format (i.e. 1830 for 6:30 p.m.) and don't turn off the computer.

The program is very crude, and it does not check the validity of the time you entered. So don't set the alarm to 18301 or to minnesota. Nothing serious should happen. It just wouldn't ring.

To change the alarm time or disable the alarm, press scroll lock again and read the instructions (two short lines, really).

Anyway, the source code is in the archive. There is also the compiled exe. Place alarm.wav in the same folder with the exe, and just run the exe.

Let me know if you like it.

Original address: https://www.donationcoder.com/forum/index.php?topic=31173.0