Good Morning All! (At least here in Aus)
Today I’d like to share with you an off topic, fun application I put together from inspiration I got off a StackOverflow.com thread entitled “What’s Your Favorite Harmless Computer Practical Joke?“. If you click this link you’ll jump right to the prank I’m talking about.
Basically Martin stated:
My all time favourite was a small application I wrote and installed on a colleagues computer.
It silently ran in the background and chimed every hour by opening and closing the CD tray and playing a “cuckoo” sound.
Effectively turning their PC into a cuckoo clock.
I thought, that’s brilliant!! He offered the source code, but alas, it was an old VB6 app and when I ported it to C# it no longer functioned (few bad references and then the CD-ROM door did not actually open).
So I started with a clean slate, ported what I could, included the ingenious tricky mechanism for storing the in-memory “Cuckoo” clock sound effect and re-wrote the code for opening the CD-ROM/DVD-ROM drive doors (yes doors, if you have multiple drives on the hour your computer is going to look like it’s doing the mexican wave). It turned out great and I really wanted to share it with everyone!
I take absolutely no credit for the design concept, that’s all Martin but I want to thank him for inspiring me to revive such a simple fun project.
- “Cuckoo Clock” sequence, press Start and on the hour your CD-ROM/DVD-ROM drive will open, chime a “cuckoo” sound the number of times since 12am/pm and close the drive door. (I found doing it the traditional way, that is, open, chime, close, open, chime, close etc. wasn’t as effective as it was taking too much time to spin up and spin down the drive, even with no cd, I find this way sounds better anyway!)
- Resident mode: Press “stealth” to re-create Martin’s dream (lol) which will hide the program to the tray ready for it’s unsuspecting victim (I recommend renaming the .exe to something like taskhost.exe, or another in-built windows process for maximum effect and hair-pulling). Note: kill process is the only way to close.
- Supports minimising to the system tray.
- Supports “tickle the bird” feature allowing you to perform a test drill and make sure the cuckoo clock is doing what it should do! (This will only chime once.)
- About dialog.
It’s licensed under the Microsoft Public License (MS-PL) and is open to tinkering of any kind, just give credit where credit’s due.
Love to see any new features you could come up with for it!