# Windows automatic swapping

**URL:** <https://forum.inductiveautomation.com/t/windows-automatic-swapping/19729>\
**Category:** Ignition\
**Created:** [September 19, 2018, 10:44am UTC](https://forum.inductiveautomation.com/t/windows-automatic-swapping/19729 "2018-09-19T10:44:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 19, 2018, 11:45am UTC](https://forum.inductiveautomation.com/t/windows-automatic-swapping/19729/2 "2018-09-19T11:45:48Z")

</div>

For rotating displays like this, I follow this procedure:

- set all of the windows to open on startup.

- use a client tag as a pointer to which window should be on top (I use one called ScreenPointer)

- a client timer script to set the pointer:

```auto
pointer = system.tag.read('[Client]ScreenPointer').value

pointer += 1

if pointer > 5: #if max number of screens is 5
  pointer = 1
  
system.tag.write('[Client]ScreenPointer')

```

- on each window (this is not a root container property, you have to highlight the window name), set the layer property to either 1 if it needs to show or 99 if it doesn’t. For example, if it’s the third window:

```auto
if({[Client]ScreenPointer} = 3, 1, 99)

```

This method uses more client memory, because you’re opening all the windows at once, but the transitions are seamless.

---

_[View the full topic](https://forum.inductiveautomation.com/t/windows-automatic-swapping/19729)._
