beeping noise on windows

Joshua Muskovitz joshm at taconic.net
Tue Jan 29 09:03:43 CET 2002


"dsavitsk" <dsavitsk at e-coli.net> wrote in message
news:pbs58.1819$HL4.314064 at newssrv26.news.prodigy.com...


> i have a program that runs every night at 12:30 (i guess that's morning)
to
> give a 5 minute countdown and then shut my computer down.  i am in law
> school, and i have class in the morning, so i need something to warn me
that
> time for python-ing is over.
>
> problem is, if i am in another room my computer shuts down and i lose
> unsaved work.  beeps help.


Have your program look for mouse movements after 12:30.  As soon as it
detects them, it should start the 5 minute countdown (and should give you a
chance to cancel it).  In this way, if you are working on the machine at
12:30, it'll behave as you wish, beeping away for five minutes and then
shutting down.  But if you are away, asleep, or otherwise occupied, it won't
take any action until you return (or the cat bumps it).

--
# Joshua Muskovitz
# joshm at taconic.net
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list