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

GetScriptName

Returns the name of the script at index ScriptIndex.

Returns an empty string if no script with the given index exists.

Возвращает имя скрипта с индексом ScriptIndex.

Возвращает пустую строку, если скрипт с данным индексом не существует.

Pascal

function GetScriptName(ScriptIndex: Word): String;

Python

def GetScriptName(ScriptIndex: int) -> str: ...

Pascal Example

begin
  AddToSystemJournal('Script name: ' + GetScriptName(0));
end.

Python Example

AddToSystemJournal(f'Script name: {GetScriptName(0)}')

See Also

GetScriptPath, GetScriptState, GetScriptsCount, GetScriptsList