Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jun 28, 2009 11:43 am |
The easiest way is with an alarm, like so:
#alarm "afk" 600 {do whatever}
#oninput {*} {#call %alarm("afk",600000)}
What this will do is create an alarm that fires after 10 minutes. If you enter any command, the timer is reset to 10 minutes. If you want to change the time, the number in #alarm is seconds and in %alarm is ms. |
|