# 'Idle' or 'inactive' function

**URL:** https://community.thunkable.com/t/idle-or-inactive-function/3171372
**Category:** Questions about Thunkable X
**Tags:** beginner, help
**Created:** [September 2, 2024, 7:13am UTC](https://community.thunkable.com/t/idle-or-inactive-function/3171372 "2024-09-02T07:13:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![altagraciras](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@altagraciras](https://community.thunkable.com/u/altagraciras)
#### Post date: [September 2, 2024, 7:13am UTC](https://community.thunkable.com/t/idle-or-inactive-function/3171372/1 "2024-09-02T07:13:13Z")

</div>

Hi guys,  
I want to ask if there is an ‘idle’ or ‘inactive’ function?

I tried creating a variable using ‘timer’ but encountered the error ‘this block cannot be in the initialize variable block’

My plan is, if the user is idle or inactive for 30 seconds, it returns to the main menu

Thanks.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [September 2, 2024, 10:08pm UTC](https://community.thunkable.com/t/idle-or-inactive-function/3171372/2 "2024-09-02T22:08:51Z")

</div>

Hi altagraciras, welcome to Thunkable! 🎉

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

Here is a project that is doing what you described: [Thunkable](https://x.thunkable.com/projects/65cce8afa35a5909fdb2314b/)

Let me know if you have questions

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [December 1, 2024, 10:09pm UTC](https://community.thunkable.com/t/idle-or-inactive-function/3171372/3 "2024-12-01T22:09:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
