Aldo,

My bad. I was using an older version which didn't show the timer. I have
since discovered it and am succussfully using three timers for three
different things. Great work!

Thanks,

Phil Larson

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aldo Calpini
> Sent: Monday, March 01, 1999 12:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [perl-win32-gui] Timer Events
>
>
> Philip A. Larson wrote:
> >Hello All,
> >
> >How bout this one:
> >
> >Is there a Timer event of some sort that I can place in my windows? So
> >it will periodically come out of its deep sleep when no one is pressing
> >anything?
>
>
> yes, there is; the class is called Win32::GUI::Timer, it is also
> documented in Win32_GUI_Timer.html.
> basically, go like this:
>
>     $Timer1 = $Window->AddTimer("Timer1", 500);
>     # triggered each 500 milliseconds
>
>     sub Timer1_Timer {
>         print "I'm awake!\n";
>     }
>
> you can then use:
>
>     $Timer1->Kill(); # disables the timer
>
> and
>
>     $Timer1->Interval(750);
>     # change the interval and/or reenables the timer
>
>
> bye,
> Aldo Calpini
> <[EMAIL PROTECTED]>
>
>
>


Reply via email to