# 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:** 6

<div class="post-metadata">

**Author:** ![kyle.bennett](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@kyle.bennett](https://forum.inductiveautomation.com/u/kyle.bennett)\
**Post date:** [August 23, 2021, 1:30pm UTC](https://forum.inductiveautomation.com/t/perspective-run-script-after-inactivity-timer-elapses/43865/6 "2021-08-23T13:30:27Z")

</div>

Just bumping this old post now that lastActivity is available in the designer post 8.1.8. Thanks guys!

What’s the most efficient use of it? I’d like to navigate to another view if no activity occurs for ‘x’ seconds. I’m thinking of creating a custom property that houses the current datetime, then put a property change script on that tag that if it’s been longer than ‘x’ seconds, then fire a navigation event. Is there a more efficient way to do this though?

Thanks again!

---

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