Search notes:

Stellarium API: core.pauseScript

core.pauseScript() pauses the execution of the script. It can be resumed with the keyboard shortcut key that is assigned to actionResume_Script. The default seems to be ctrl-d r and can be overwritten in the config.ini file (or %APPDATA%\Stellarium\Config?).
//  vim: ft=javascript
//
//  ..\..\runScript.bat pauseScript.ssc
//  

// Go to Irchelturm
core.setObserverLocation(
   8 + 36/60 + 25.85/60/60, // longitude  E-W
  47 + 32/60 + 21.48/60/60, // latitude   S-N
   0                        // Altitude
);

core.setDeltaTAlgorithm("WithoutCorrection");

core.setDate(
  '2014-01-04T02:00:00',
  'local'              , // or 'utc'
   true                  // enable Delta T correction
);

StelMovementMgr.zoomTo(30, 0);

LabelMgr.labelScreen("Pausing Script Text", 20, 20, true, 20, "#ffc08b");
core.pauseScript();

LabelMgr.deleteAllLabels();
Github repository about-Stellarium, path: /API/core/pauseScript.ssc

See also

In order to pause a script, ctrl-d p can be used
core.setTimeRate(0) stops time (but not the script.
core.wait()
Stellarium Script API

Index