Question please: on focus switches do automatically sort on date

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
iammike
Junior Member
Junior Member
Posts: 19
Joined: 2011-05-18, 10:43 UTC
Location: SE Asia

Question please: on focus switches do automatically sort on date

Post by *iammike »

I have a usercmd.ini which contains
[em_Fai]
cmd=CD "D:\Documents\Electric"
In the Button Bar, I have this button
with Command - cm_FocusRight,em_Fai

This is already great, but what I would like to do is when the Focus Switches it also automatically sorts the right Tab on date (newer files first) (only if the sort has changed).

Possible? (must be with this great program :D )

TiA
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Question please

Post by *Gral »

There is no way already to check sort order and run command conditionally so you must add two commands:
cm_RightUnsorted,cm_RightByDateTime and full command chain should looks like

Code: Select all

cm_FocusRight,em_Fai,cm_RightUnsorted,cm_RightByDateTime
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Question please

Post by *white »

Gral wrote: 2022-09-08, 11:37 UTC .. you must add two commands:
Or 1 command and a parameter.
Help - Dialog box: Choose command wrote: List of internal cm_x commands which support a parameter:
...
...
CM_*BYNAME, CM_*BYEXT, CM_*BYSIZE, CM_*BYDATETIME
0 or no parameter=toggle, 1=ascending, 2=descending
4: When added, sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
User avatar
iammike
Junior Member
Junior Member
Posts: 19
Joined: 2011-05-18, 10:43 UTC
Location: SE Asia

Re: Question please: on focus switches do automatically sort on date

Post by *iammike »

Wow thx guys!!
Post Reply