Here's my problem:
I am making a proof-of-concept security system for my room. I wanted to try hardware interfacing with the parallel port. What i want to do, is poll the parallel port on a constant interval and notify my by email if the door is opened. The only problem is that I don't want a bazillion emails because i'm polling few milliseconds. What i want to know is how I can email myself only the first time the door is open.

Timer execute once
Quacker
What bit are you stuck on The code has a boolean flag which is set to false. When someone walks into the room, set it to true, after sending the email. When the door closes, set it to false again. If the door is open, and the flag is true, do nothing, it's been done.
Davidrd
Vetu