Hello,

I have had some luck getting StartupObs.js (in Scheduler) and ShutdownObs.js (in ACP Console) to work properly (thanks to the sample code provided and relevant discussions on the forum).

However, I am confused as to how to modify these scripts for use outside of Scheduler and from a non-ACP Console (such as a debugger or Wscript/Cscript with cmd.exe).

Currently, when I try to run StartupObs.js from the ACP Console, it fails to open my AstroMC roll-off roof before trying to home the Telescope. I have to manually Abort in TheSkyX to prevent my scope from running into the closed roof. When I run StartupObs.js via the Scheduler everything works as expected, the roof opens and ACP waits till it is open to Home the scope.

Note: I have a Telescope FindHome command near the end of my script and use a Dome.Shutterstatus to check if the Rome is open, but it doesn't catch that the Roof is closed when run from the ACP Console.

Thanks for any help or advice.

Paul