Recent

Author Topic: Get value of TIdleTimer  (Read 6171 times)

cybersmyth

  • Jr. Member
  • **
  • Posts: 51
Get value of TIdleTimer
« on: January 10, 2011, 10:15:46 pm »
I've look for this and can't find it, so forgive me if it's blatantly obvious...

Is there a way to get the value of the TIdleTimer? I want to use it as a status bar item or maybe an indicator as the counter get close to execution. For example, the idle timer is set to go off after 5 minutes, maybe play a sound at 2 minutes, and a different sound at 4 minutes.

Thanks,
-Joe

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2645
Re: Get value of TIdleTimer
« Reply #1 on: January 11, 2011, 02:14:18 am »
Use different timers (or the same repeating)
In your case a 2 + 2 + 1 minute timer.
Or use a repeating 1 minute timer and keep a counter, countin the time the timerevent fired.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018