TimerTray - VB6 Egg Timer App
TimerTray Screenshot
This little application I wrote out of a need for myself, and it made a pretty good exercise for getting back into VB. It's released under a BSD license, meaning you can almost do whatever the hell you want with it.
If you're dabbling with Visual Basic 6, this code might make for some interesting reading. It doesn't use OCX components for anything, and here's a few of the things it does using nothing but WinAPI functions:
- Play Sounds (sndPlaySoundA())
- Read and Write the Registry (RegOpenKey(), RegQueryValueEx(), etc, all wrapped up in a handy "settings" class)
- Spawn a Web browser to a page (ShellExecute())
- Create a System Tray Icon the hard way (RTLMoveMemory(), CallWindowProc(), Shell_NotifyIcon(), etc)
So what's the app itself do? Simple. It sits in your system tray. You double click to bring it up, you set the timer, hit start, then minimize it. When the timer runs out, it plays a noise (either the Default Beep, or a sound of your choosing) to let you know that your eggs (or pizza, or whatever) are done.
There could (and probably should) be a lot more error handling in this app. But it does what I need it to do, and I'm kind of getting bored with the project. So here it stands, released.
Links
- Download Win32 Binary + VB6 Source.
- VB6 is quite usable even today, and you can pick up a licensed version on ebay for pretty cheap.