AnsweredAssumed Answered

Script stuck in Pause...missing something

Question asked by PaulWebb on Feb 29, 2012
Latest reply on Mar 1, 2012 by PaulWebb

Title

Script stuck in Pause...missing something

Post

Hi All...

When my file opens a script called Startup runs which does the following.

  • Allow User Abort [ Off ]
  • Set Error Capture [ On ]
  • #---------------------------------- Opens the home page on startup.
  • Show/Hide Status Area [ Hide ]
  • Adjust Window [ Resize to Fit ]
  • Move/Resize Window [ Current Window; Top: (Get ( WindowDesktopHeight ) / 4) - (Get ( WindowContentHeight )/4); Left: (Get ( WindowDesktopWidth ) / 2) - (Get ( WindowContentWidth ) / 2) ]
  • #---------------------------------- Create Alerts popup
  • Perform Script [ “Alerts” ]
And the Alerts script does...
  • Allow User Abort [ Off ]
  • Set Error Capture [ On ]
  • Show/Hide Status Area [ Hide ]
  • #---------------------------------- Opens a new window for Alerts.
  • New Window [ Name: "Alerts"; Top: ( Get ( WindowDesktopHeight ) / 4 ) - ( Get ( WindowContentHeight ) / 4 ) + 10; Left: ( Get ( WindowDesktopWidth ) / 4 ) - ( Get ( WindowContentWidth ) / 4 ) ]
  • Allow Toolbars [ Off ]
  • Go to Layout [ “Alerts” (SR) ]
  • Adjust Window [ Resize to Fit ]
  • #---------------------------------- Pausing the script locks the user out of everything else until they close the window.
  • Pause/Resume Script [ Indefinitely ]
  • #---------------------------------- Closes the window when the button is clicked.
  • Close Window [ Name: "Alerts"; Current file ]
Everything seems to work as planned. After I hit the close button to close the popup my script is still paused. I've tried several things with no luck. Curious what I am missing.
 
FM Pro 11 Advanced
 
Thanks,
Paul
 
PS - Also trying to line up the popup window in the middle of the main window. So if someone can help with the New Window step I'd appreciate it.

Outcomes