FileSelectFolder Dialog Topic is solved

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

FileSelectFolder Dialog

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.
Posts: 8571
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: FileSelectFolder Dialog

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
Posts: 1528
Joined: 06 Oct 2015, 21:39

Re: FileSelectFolder Dialog

11 Oct 2018, 09:30

In the meantime, Flipeador wrote a very nice function for this here - ... Folder.ahk
Posts: 8571
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: FileSelectFolder Dialog  Topic is solved

03 Nov 2022, 20:35

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

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 3 guests