[REBOL] Re: Tracking the Inactivity
From: g::santilli::tiscalinet::it at: 20-Jan-2003 17:11
Hi Philippe,
On Monday, January 20, 2003, 3:59:54 PM, you wrote:
PO> Someone got an idea ?
One way could be to have a timer that is reset each time you get
an event from the user (mouse click etc.). You set a face's rate
so to get a time event, say, one time a second. In that face's
feel you decrement a counter. Each time you get an event from the
user you reset the counter; if the counter gets to zero, then the
user has been inactive for the time counted by the counter.
HTH,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r