Jump to content

Expand all directories win10


Czennen
 Share

Recommended Posts

Hi guys, I'm currently creating an automation that needs to open all directories in all apps win10, like seen on the image below (autoit folder is open). I've been looking for a way to do this for some time now, but with no avail, any help would be appreciated, thank you :) 

444.png

Link to comment
Share on other sites

You should post some of your efforts.

the farthest I've researched to do this is a shortcut key 'numlock + *', but it only works with the folder currently selected, the automation I'm creating will be used by different pcs hence different files and folders.

So as far as I'm stuck with a simple Send() command ><

Link to comment
Share on other sites

You only need to press/send ENTER to expand a folder.

yes, but I need to expand all the folders in all apps.

 

so this is what I hoped to make:

1. Opens the Start Menu.

2. Opens 'All Apps'.

3. Expands all folders in 'All Apps'

4. Takes a Screenshot of every section of all apps.

5. Save the Screenshots in img folder.

 

Currently I finished the coding for all except no.3, I tried Sending 'Down and enter', but found a flaw since it'll runs non folder files.

Link to comment
Share on other sites

I think the best way is using IUIAutomation You need to check every item get info of focused one  UIAutomation.GetFocusedElement  then if UIA_ExpandCollapseExpandCollapseState=0 then click or {enter} and got to next item pressing {DOWN}.

 

Saludos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...