Hi
I am trying to write a global event that will If the system is inactivate and it is not on the launch Page close all windows and return to Launch Page
This is the code I have written.It is returning to the launch Page automatically. It is probably something simple but I cant seem to find it
if fpmi.system.getInactivitySeconds() > 600 and fpmi.nav.getCurrentWindow() != "Launch Page":
for OpenWindows in fpmi.gui.getOpenedWindows():
fpmi.nav.closeWindow(OpenWindows)
fpmi.nav.openWindow('Launch Page')
Thanks
Aidan