# Time Based Screen Rotation Help

**URL:** <https://forum.inductiveautomation.com/t/time-based-screen-rotation-help/104734>\
**Category:** General Discussion\
**Created:** [April 4, 2025, 6:13pm UTC](https://forum.inductiveautomation.com/t/time-based-screen-rotation-help/104734 "2025-04-04T18:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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 4, 2025, 7:01pm UTC](https://forum.inductiveautomation.com/t/time-based-screen-rotation-help/104734/7 "2025-04-04T19:01:16Z")

</div>

Something like this. Tip: post code [as code](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831), not just a screenshot

```python
tagpath = "[client]Rotation"
windows = ["Windows/ExtrusionNew", "Windows/Ovens"]

x = system.tag.read(tagpath).value % len(windows)

system.nav.swapTo(windows[x])

system.tag.write(tagpath, x + 1)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/time-based-screen-rotation-help/104734)._
