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

GetScriptPath

Returns the full file path of the script at index ScriptIndex.

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

Возвращает полный путь к файлу скрипта с индексом ScriptIndex.

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

Pascal

function GetScriptPath(ScriptIndex: Word): String;

Python

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

Pascal Example

begin
  AddToSystemJournal('Script path: ' + GetScriptPath(0));
end.

Python Example

AddToSystemJournal(f'Script path: {GetScriptPath(0)}')

See Also

GetScriptName, GetScriptState, GetScriptsCount, GetScriptsList