FileSelectFolder Dialog Topic is solved

Discuss the future of the AutoHotkey language
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

FileSelectFolder Dialog

Post by toralf » 19 Jun 2014, 05:12

The current FileSelectFolder dialog in AHK is a very basic one.
On newer Windows systems generally a more feature rich dialog is shown.
Maybe with v2 the dialogs of AHK could be 'upgraded'?

Just a thought.

PS: I searched this and the old forum and was not able to find any related topic. I hope I didn't repost.
ciao
toralf

lexikos
Posts: 9664
Joined: 30 Sep 2013, 04:07
Contact:

Re: FileSelectFolder Dialog

Post by lexikos » 20 Jun 2014, 21:27

FileSelectFolder/DirSelect uses the SHBrowseForFolder function.
For Windows Vista or later, it is recommended that you use IFileDialog with the FOS_PICKFOLDERS option rather than the SHBrowseForFolder function. This uses the Open Files dialog in pick folders mode and is the preferred implementation.
Source: SHBrowseForFolder function
I personally think the Open Files dialog is not suited for selecting folders, and hated the 'new' Vista implementation. But even more than that, I dislike the fact that programs are required to use the new APIs to get the new interfaces. We end up with one of several different dialogs depending on how old the program is, or Windows 3.1 style file dialogs (even in programs which aren't 10-20 years old).

Anyway, I'd consider adding an option for the newer version of the dialog (on Vista+) and making it the default in v2, especially if someone else does the work.

User avatar
kczx3
Posts: 1648
Joined: 06 Oct 2015, 21:39

Re: FileSelectFolder Dialog

Post by kczx3 » 11 Oct 2018, 09:30

In the meantime, Flipeador wrote a very nice function for this here - https://raw.githubusercontent.com/flipe ... Folder.ahk

lexikos
Posts: 9664
Joined: 30 Sep 2013, 04:07
Contact:

Re: FileSelectFolder Dialog  Topic is solved

Post by lexikos » 03 Nov 2022, 20:35

This was implemented at some point with the 'D' option of FileSelect.

Post Reply

Return to “AutoHotkey Development”