Help for this page
... # launch the window ... &PressAButton( $gui_handle, "&Close" ); # should be done here
... # launch the window ... # here is the kicker: kill 9, $pid; # now continue with my usual testing...