# Message in idle state

**URL:** <https://forum.kirupa.com/t/message-in-idle-state/6866>\
**Category:** Uncategorized\
**Created:** [October 18, 2002, 10:13am UTC](https://forum.kirupa.com/t/message-in-idle-state/6866 "2002-10-18T10:13:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolguy13](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@coolguy13](https://forum.kirupa.com/u/coolguy13)\
**Post date:** [October 18, 2002, 10:13am UTC](https://forum.kirupa.com/t/message-in-idle-state/6866/1 "2002-10-18T10:13:17Z")

</div>

hi guys,

I m making a wbt where i want to display a message box if there is no interaction for some time (lets say 2 min).  
The scenario is there will be some voice over & text which ask the user to click on smthng or drag & drop intr. so i need to check once the voice is over whether student has done some interaction or if its in idle state. if state is idle then display some text box or message asking user to click or somethng.

rgds  
coolguy=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 21, 2002, 2:22pm UTC](https://forum.kirupa.com/t/message-in-idle-state/6866/2 "2002-10-21T14:22:24Z")

</div>

HI,

posting it again. didnt get any reply so far…  
i m putting my question again:  
how can i trap whether any activity is done by user or not in a given time interval. if no activity is done then how can a message be displayed to the user.

thx!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 21, 2002, 3:52pm UTC](https://forum.kirupa.com/t/message-in-idle-state/6866/3 "2002-10-21T15:52:22Z")

</div>

At the end of the voice, start a getTimer(), and if you click on something it resets the getTimer, otherwise it keeps going. Search the forum a bit on getTimer, there’s plenty of information.

pom 🙂
