Posts: 129
Threads: 38
Joined: May 2006
If you open Explorer, one would click on the + sign to expand it and reclick it close it.
Would it be possible to figure out if it's already expanded before using acc to do anything with an item?
Posts: 12,135
Threads: 142
Joined: Dec 2002
if(a.State&STATE_SYSTEM_EXPANDED)
,out "exp"
else
,out "no"
Posts: 129
Threads: 38
Joined: May 2006
Hi Gintaras, it's me again.
This does not seem to work on items below the main tree. For example, the main tree is Program Files. Underneath that, is Quick Macros 2. I need to be able to check also if Quick Macros 2 is already expanded, if not expand it. Just like the main tree.
Posts: 12,135
Threads: 142
Joined: Dec 2002
Here works. The folder may be not visible. Check "search invisible objects".
;run "explorer" "/e,/root,C:\Program Files"
;5
Acc a=acc("Quick Macros 2" "OUTLINEITEM" win("Program Files" "ExploreWClass") "SysTreeView32" "" 0x1011)
if(a.State&STATE_SYSTEM_EXPANDED)
,out "exp"
else
,out "no"