I've found this that serves to uncheck (disable) only the headers that are not scripts:
Spoiler
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
function Close_All()
local al = AddressList
for i = 0, al.Count - 1 do
if al[i].Type ~= vtAutoAssembler then
al[i].Active = false
al[i].Collapsed = true
end
end
end
Close_All()
Selected.Active = false
[DISABLE]
Spoiler
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
function Disable_All()
local al = AddressList
for i = 0, al.Count - 1 do
if al[i].Type == vtAutoAssembler then
al[i].Active = false
end
end
end
Disable_All()
Selected.Active = false
[DISABLE]
but none of these hides the children of the headers automatically.
Once, I spent several minutes manually right-clicking on a headers, then "Group config," and then "Hide children when deactivated" for every header that had children, and it's a hassle; in fact, I would like a specific script to do that.
Thank you.