Is there a way to timeout a window?

Is there a way you can run a timer or may be system.util.invokeAsynchronous to timeout the window (pop-up in this case) after a specific time ?

How are you creating the popup?
If it’s scripting, you can use system.util.invokeLater and register a ‘close’ callback after a delay, e.g.:

system.util.invokeLater(lambda: system.nav.closeWindow("path/To/Window"), 1000 * 60 * 5) # 5 minutes
1 Like

Yup, exactly what I was looking for.
I knew that I can use invokeLater in replacement of time.sleep but it would work as a timer like this was something I wasn’t sure about.

Thanks @PGriffith