Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SysTreeView32, e.g., Explorer
#1
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?
#2
Code:
Copy      Help
if(a.State&STATE_SYSTEM_EXPANDED)
,out "exp"
else
,out "no"
#3
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.
#4
Here works. The folder may be not visible. Check "search invisible objects".

Code:
Copy      Help
;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"


Forum Jump:


Users browsing this thread: 1 Guest(s)