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.
You already posted this over here:
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 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.