Window swapping

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

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

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.

You already posted this over here:

It is against this forum's rules 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.