# Perspective run script after inactivity timer elapses

**URL:** <https://forum.inductiveautomation.com/t/perspective-run-script-after-inactivity-timer-elapses/43865>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [February 26, 2021, 1:49pm UTC](https://forum.inductiveautomation.com/t/perspective-run-script-after-inactivity-timer-elapses/43865 "2021-02-26T13:49:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 12, 2023, 10:21pm UTC](https://forum.inductiveautomation.com/t/perspective-run-script-after-inactivity-timer-elapses/43865/10 "2023-04-12T22:21:41Z")

</div>

That's not how it works.  
`lastActivity` is a datetime that's automatically updated the last time the user _does_ do something. If you want to react to that change, it's up to you. So, if you want to close a dock, then start a thread after the property changes that waits 60 seconds, checks if the last activity still hasn't changed from the value it was last set to, and then kicks off whatever action you want.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-run-script-after-inactivity-timer-elapses/43865)._
