How to open the "new" open folder dialog?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Bral
Posts: 20
Joined: 04 Apr 2015, 21:24

How to open the "new" open folder dialog?

18 Sep 2019, 08:23

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 1472 times
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

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

18 Sep 2019, 08:46

@Flipeador has written a function for it (but for v2)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
Flipeador
Posts: 1204
Joined: 15 Nov 2014, 21:31
Location: Argentina
Contact:

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

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:
Bral
Posts: 20
Joined: 04 Apr 2015, 21:24

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

19 Sep 2019, 08:41

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?
User avatar
Flipeador
Posts: 1204
Joined: 15 Nov 2014, 21:31
Location: Argentina
Contact:

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

19 Sep 2019, 09:34

The first parameter allows you to specify the owner window. Is that what you are referring to?. :think:
Bral
Posts: 20
Joined: 04 Apr 2015, 21:24

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

19 Sep 2019, 10:07

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.
User avatar
Flipeador
Posts: 1204
Joined: 15 Nov 2014, 21:31
Location: Argentina
Contact:

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

19 Sep 2019, 10:28

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
Bral
Posts: 20
Joined: 04 Apr 2015, 21:24

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

20 Sep 2019, 05:02

Thank you very much, this code work fine.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 107 guests