From: Johan L. <jo...@ba...> - 2002-04-13 23:12:33
|
Ed wrote: >The way I would probably do this, without a gui, is to >read the file, >figure out what time to go off, convert it to seconds >and sleep until then. >But I can't do that because the main gui loop is >always running waiting >for an event, correct? >How would I do a periodic check on the alarm time, and >not interfere >with the main gui loop, can these be reconciled? Take a look at the Win32::GUI::Timer control. It can be set to trigger an event every n milliseconds(?) in which you can do your stuff. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "CGI Help Guide" http://www.perlmonks.org/index.pl?node=CGI%20Help%20Guide dmoz (1 of 8): /Computers/Programming/Languages/Perl |