Get the name of the window currently in use via script

system.gui.getParentWindow(event).getPath()

Works for me in 8.0.10.

1 Like