GetScriptsList
Returns list of all active scripts for this char(maens char-owner of script, who execute this method).
in normal conditions should contain at least one item (these script).
Related function for script control: GetScriptState, GetScriptName, GetScriptPath, GetScriptsCount, StartScript, StopScript, PauseResumeSelScript, StopAllScripts, SetScriptName
function GetScriptsList : TArray<TScriptItemInfo>; //PS cant get "array of ..." in result, thats why need to use synonym types
function GetScriptsList : TArray<TScriptItemInfo>;
function GetScriptsList : TScriptItemInfoArray;
Example Pascal
program test;
var sl : TScriptItemInfoArray;
i : Integer;
begin
sl := GetScriptsList;
if Length(sl) > 0 then
for i := 0 to Length(sl) - 1 do
begin
AddToSystemJournal(GetScriptName(sl[i]) + ' : ' + GetScriptPath(sl[i]));
end;
end.
Python
def GetScriptsList() -> array # method will be available in stealth 10.3.7