Page 1 of 1

display Folders as files

Posted: 2020 Jan 18, 11:07
by mjbrookes
I have ONE folder where it makes sense to ...
Tools > Options > Window > Folders sorted == As Files

everywhere else
Tools > Options > Window > Folders sorted == Separately
makes more sense.

Is there a way that I can make X2 display this one folder the way I want if/when I browse to it?

Thanks
Mark

Re: display Folders as files

Posted: 2020 Jan 18, 12:27
by nikos
this option is not part of folder settings, so the only solution to flip it would be to use a macro

Re: display Folders as files

Posted: 2020 Jan 18, 13:19
by mjbrookes
I have not had success with X2 Macros (not being a coder either)

Can you suggest the macro?

regards
Mark

ps I had not been able to find a way to do what I wanted in settings, so I was expecting the answer to probably be NO.
So the possibility of a Macro solution is ENCOURAGING :-)

Re: display Folders as files

Posted: 2020 Jan 19, 06:38
by nikos
here you are

Code: Select all

# make folders sort as files through program options
COMMAND 32974
WAITWND
FINDCLASS SysTabControl32
select 2 # window page
POP 0
FINDCLASS ComboBox
SETFOCUS
SELECT 1 #as files
OK

Re: display Folders as files

Posted: 2020 Jan 21, 11:39
by mjbrookes
Thanks Nikos,

it works :D , and after some experiments I have the code to Toggle back to normal display

Code: Select all

# make folders sort FoldersSeparately
# Tools > Options > Window > FoldersSorted...
COMMAND 32974
WAITWND
FINDCLASS SysTabControl32
select 2 # window page
POP 0
FINDCLASS ComboBox
SETFOCUS
SELECT 2 #separately
OK

Now, if only there was a way (macro command) to execute the macro when it entered selected folders (eg if folder path contains text "xxx")?

regards
Mark