There was a rule at my high school that you had to lock your computer when you stepped away from it. I made this program and told everyone the URL, with these instructions:
Find an unlocked computer, open this, arm it, and then lock the computer!
People stopped leaving their computers unlocked pretty quickly.
Warning: Flashing Lights and Loud Sounds! (Direct Link to SWF)