# Rolling Windows

**URL:** <https://forum.inductiveautomation.com/t/rolling-windows/6852>\
**Category:** Ignition\
**Created:** [July 11, 2013, 2:22pm UTC](https://forum.inductiveautomation.com/t/rolling-windows/6852 "2013-07-11T14:22:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [July 11, 2013, 2:22pm UTC](https://forum.inductiveautomation.com/t/rolling-windows/6852/1 "2013-07-11T14:22:06Z")

</div>

We are wanting to roll some windows for a large TV display, on a regular schedule (swap windows every 10 seconds), on a certain client. Here is the timer script we have in the Client Event Scripts:

tagpath = “[Client]TV1\_SWAP” % system.net.getHostName()  
x = system.tag.getTagValue(tagpath)  
windows = [“MGMT/TV\_PKG\_BY\_SHIFT”, “MGMT/TV\_CUSTOM”]

if x \>= len(windows):  
x = 0

system.nav.swapto(windows[x])  
system.tag.writeToTag(tagpath, x+1)

Does anybody have any suggestions as to why this isn’t advancing the tag value and swapping the screens? Thanks!

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 11, 2013, 3:01pm UTC](https://forum.inductiveautomation.com/t/rolling-windows/6852/2 "2013-07-11T15:01:24Z")

</div>

I don’t know, but you could test parts of your script to find out what is happening.  
After getting the value of the tag and assigning it to x try printing x to the client console.

You can see the console in the client by going to Help -\> Diagnostics and then choosing the Console tab.

You can also try printing other values in the script.
