# Window swapping

**URL:** <https://forum.inductiveautomation.com/t/window-swapping/80855>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 23, 2023, 2:41pm UTC](https://forum.inductiveautomation.com/t/window-swapping/80855 "2023-10-23T14:41:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 23, 2023, 2:41pm UTC](https://forum.inductiveautomation.com/t/window-swapping/80855/1 "2023-10-23T14:41:02Z")

</div>

```auto
swapWindows = {"Welding 1": "Welding 1 South" , "Welding 1 South": "Welding 1"}
win = system.nav.getCurrentWindow()

if win in swapWindows.keys():
	nextWindow = swapWindows[win]
	system.nav.swapTo(nextWindow)

```

Wrote this script to swap between windows. It works for a while then freezes up and have to end task then relaunch to get it running again.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 23, 2023, 3:05pm UTC](https://forum.inductiveautomation.com/t/window-swapping/80855/2 "2023-10-23T15:05:29Z")

</div>

You already posted this over here:

> [@Client swap windows freezing](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793):
>
> I have a project that runs on a nuc its setup to swap between 2 windows and it will work for a while then it freezes on 1 screen and have to restart the nuc to get it going again.

It is against this [forum's rules](https://forum.inductiveautomation.com/faq) to double post.

It **is** reasonable and proper to "ping" an unanswered topic with a new comment after a few days. If you still don't have an answer, then there might not be one specific to your case.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 23, 2023, 3:05pm UTC](https://forum.inductiveautomation.com/t/window-swapping/80855/3 "2023-10-23T15:05:34Z")

</div>

Closed on October 23, 2023, 3:05pm UTC


