I know you can launch script automatically when a user exits a layout. But I need to launch a script when a user CLOSES a specific window.
I want to set a $$variable if the user close the Main Menu layout.
I tried the File Option: OnWindowClose to launch a script that IF (Get(WindowName)="Main Menu") set Variable $$MM=1. But it is not working.