# Writing the Application Scripts

The project utilizes the OnShutdown and OnStartup Application Scripts:

- OnShutdown:

      $Components.RunContinuousTimer.Stop();

- OnStartup:

      $Components.RunContinuousTimer.Stop();

      $Display3D.InputImage = $System.GetInternalObject("Pages.Page.Display3DInputImage");
      $Display3D.ResultImage = $System.GetInternalObject("Pages.Page.Display3DResultImage");

      $Pages.Page.Display3DInputImage.Clear();
      $Pages.Page.Display3DResultImage.Clear();

      $OverlayGreyImage($Display3D.GreyImageOverlay, "input");