Thanks aldo for all your info
chris www.perl-resume.com ----- Original Message ----- From: Aldo Calpini <[EMAIL PROTECTED]> To: christopher sagayam <perl-win32-gui-users@lists.sourceforge.net> Sent: Wednesday, February 14, 2001 6:59 PM Subject: Re: [perl-win32-gui-users] looping in win32 GUI christopher sagayam wrote: > Here is what Im trying to do > > I am trying to write a win32 gui perl client which when started > will check whether the computer is connected to internet > continuously indefinety in the meantime other actions should > proceed also > > So based on your previous example actually there wont be a STOP > button at all since this loop is going to be continuouly executed > as along as the win32 gui script is running > > now the catch is during the time the loop is running I need to > catch key presses , button presses , tab presses etc too and do > it efficiently I see. in this case, the best thing to do is to setup a Timer object with a small interval and do your connectivity test once inside its Timer event, no loop, no sleep :-) cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print; _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com