Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

PauseResumeScript

Pauses or resumes the script at the specified index. If the script is currently running, it will be paused; if paused, it will be resumed.

In Python, this method is named PauseResumeSelScript.

ScriptIndex — index of the script in the scripts list (as returned by GetScriptsList).

Ставит на паузу или возобновляет скрипт с указанным индексом. Если скрипт выполняется — он будет приостановлен; если приостановлен — возобновлён.

В Python метод называется PauseResumeSelScript.

ScriptIndex — индекс скрипта в списке скриптов (как возвращает GetScriptsList).

Pascal

procedure PauseResumeScript(ScriptIndex: Word);

Python

def PauseResumeSelScript(ScriptIndex: int) -> None: ...

Pascal Example

begin
  PauseResumeScript(0);
  AddToSystemJournal('Toggled pause/resume for script 0');
end.

Python Example

PauseResumeSelScript(0)
AddToSystemJournal('Toggled pause/resume for script 0')

See Also

GetScriptsList, GetScriptState, StopScript, StartScript