Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all articles
Browse latest Browse all 750

FileSelectFolder tip of the day

$
0
0

Recently, I’ve started using FileSelectFolder(...) in a script that I use daily. I was puzzled—then frustrated—by the fact that even with a defined “initial dir”, the select dialog always stated back at the base Desktop ... which meant I had to navigate down the tree every time I wanted to select a different directory.

 

Seeking some solution, I went through the different FileSelectFolder alternatives in the example forum. But they each addressed other issues and I found no option for something this simple.

 

I was about out of things to look at when I googled select expand expand and found this:

 

http://www.howtogeek.com/102905/set-the-navigation-pane-tree-to-automatically-expand-in-windows-7/

 

It clearly explains the Navigation pane >> Automatically expand to current folder option in Windows Explorer.

 

I clicked it on and “Problem Solved”! So it had nothing to do with the FileSelectFolder call. And it explains why FileSelectFolder doesn’t have an option for expanding. Only, I didn’t know there was any such setting.  Heck, I didn't even know that Windows Explorer was used verbatim by the dialog (as opposed to some dll call).   And BTW, you can’t change this option from an active selection dialog. You have to start a copy of Windows Explorer and change it there. 

 

The reason I never noticed this setting is that I don’t use Windows Explore for any of my other file management. (I use a 3rd party file manager.).

 

I don’t know if this posting will do anyone any good—or if I’m the only person who didn’t know of this. But I figured I should pass this along, for the sake of new AutoIt users—or someone like me.

 


Viewing all articles
Browse latest Browse all 750

Latest Images

Trending Articles



Latest Images