-
Notifications
You must be signed in to change notification settings - Fork 8
listActiveScripts
MicroBlaster edited this page Nov 10, 2019
·
2 revisions
Purpose: Populates a user-specified array with a list of currently active scripts.
Syntax: listActiveScripts {ArrayName}
Notes: A variable matching the name of the array will be created to hold the count and size of the array. So if you named the array $array, then $array will equal the number of active scripts, $array[1] will be the name of the first script, $array[2] the second, and so on.
Example:
# Stop FastFoton.ts if it is running
listActiveScripts $scripts
setVar $a 1
while ($a <= $scripts)
if ($scripts[$a] = "FastFoton.ts")
stop $scripts[$a]
return
end
add $a 1
end
.