Page 1 of 1

How to open the "new" open folder dialog?

Posted: 18 Sep 2019, 08:23
by Bral
when i use FileSelectFolder, it open old open folder dialog. how to open new dialog like this:
QQ浏览器截图20190918212119.png
QQ浏览器截图20190918212119.png (56.37 KiB) Viewed 990 times

Re: How to open the "new" open folder dialog?

Posted: 18 Sep 2019, 08:46
by jNizM
@Flipeador has written a function for it (but for v2)

Re: How to open the "new" open folder dialog?

Posted: 18 Sep 2019, 08:59
by Flipeador
AHKv1: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=65909&p=283111#p283101(specifically here).
@jNizM: My v2 code is out of date. I'll be updating it soon.

:wave:

Re: How to open the "new" open folder dialog?

Posted: 19 Sep 2019, 08:10
by Bral
:thumbup: Thanks!

Re: How to open the "new" open folder dialog?

Posted: 19 Sep 2019, 08:41
by Bral
Flipeador wrote:
18 Sep 2019, 08:59
AHKv1: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=65909&p=283111#p283101(specifically here).
@jNizM: My v2 code is out of date. I'll be updating it soon.

:wave:
How to show your "ChooseFolder dialog" as model dialog?

Re: How to open the "new" open folder dialog?

Posted: 19 Sep 2019, 09:34
by Flipeador
The first parameter allows you to specify the owner window. Is that what you are referring to?. :think:

Re: How to open the "new" open folder dialog?

Posted: 19 Sep 2019, 10:07
by Bral
Flipeador wrote:
19 Sep 2019, 09:34
The first parameter allows you to specify the owner window. Is that what you are referring to?. :think:
I think that's not i need for, I need that if open Choose Folder dialog, you can't switch to the main window,and can't click any button in main windows, until you close Choose Folder dialog.

Re: How to open the "new" open folder dialog?

Posted: 19 Sep 2019, 10:28
by Flipeador
That's what it's for, try it:

Code: Select all

Gui +HWNDhGui
Gui Add, Button,, My Button
Gui Show, x10 y10 w100 h100
ChooseFolder( [hGui, "Dialog title - ChooseFolder.."] )
ExitApp

Re: How to open the "new" open folder dialog?

Posted: 20 Sep 2019, 05:02
by Bral
Thank you very much, this code work fine.