Sunday Project: Quick Alarm clock


Recommended Posts

This is an alarm clock project I just finished in VB6.

The bomb icons are from the first Gant set.

Let me know what you think.

Usage:

Just name a wav alarm.wav and place it in the same directory with quickalarm.exe.

Click the bomb to enable/disable the alarm.

Sending to tray automatically enables the alarm.

To do:

-enable popup menu on tray icon (it's all ready to go but due to the next things, I left it disabled)

-have the icon change on the tray icon when Alarm On/Off menu item selected

-have the tooltiptext change on the tray icon when Alarm On/Off menu item selected

Notes:

The alarm.wav is played by shelling sndrec32 /embedding /close /play as to cut down on resources used.

The class I used to call the time is Win32_LocalTime (not win32_currentime, which flipped the hour between win32_localtime and win32_utctime as it wished).

A timer is used to call the WMI queries.

There is no true error checking on the combo box text. The only error checking is to see if they read H M or S, then change them to 00 when alarm is enabled.

The tooltip is in there and is wrong. Whenever the tray icon is visible, the alarm is on.

QuickAlarmv1.zip

post-122057-1154316195.png

Edited by bigflavor
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.