Solved - Minor bug in cm_SrcViewModeList

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Galizza
Senior Member
Senior Member
Posts: 209
Joined: 2018-09-07, 05:21 UTC

Solved - Minor bug in cm_SrcViewModeList

Post by *Galizza »

 
Hi, i've noticed a bug when using cm_SrcViewModeList command.


If i use it this way it works ok.

Code: Select all

[em_SameViewModeBothPanels]
Cmd=cm_SrcViewModeList 2,cm_FocusTrg,cm_SrcViewModeList 2

But if i use an em_command instead of cm_SrcViewModeList 2

Code: Select all

[em_SameViewModeBothPanels]
Cmd=em_ViewModeBlackBlue,cm_FocusTrg,em_ViewModeBlackBlue

[em_ViewModeBlackBlue]
Cmd=cm_SrcViewModeList 2
Then it doesn't work, thanks.


Tc 11.51 Final 32 Bits // Windows 10 22H2 32 Bits
 
 
 
Last edited by Galizza on 2025-05-08, 19:55 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50703
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Minor bug in cm_SrcViewModeList

Post by *ghisler(Author) »

Total Commander doesn't wait for the em_command to finish. Try this instead:

Code: Select all

[em_SameViewModeBothPanels]
Cmd=em_ViewModeBlackBlue,cm_wait 100,cm_FocusTrg,em_ViewModeBlackBlue

[em_ViewModeBlackBlue]
Cmd=cm_SrcViewModeList 2
What happens is that Total Commander calls PostMessage with em_ViewModeBlackBlue, so it is only handled after em_SameViewModeBothPanels ends (or during cm_wait). So the execution order actually is
cm_FocusTrg,em_ViewModeBlackBlue,em_ViewModeBlackBlue
I will try to execute them in order by using SendMessage instead.
Author of Total Commander
https://www.ghisler.com
User avatar
Galizza
Senior Member
Senior Member
Posts: 209
Joined: 2018-09-07, 05:21 UTC

Re: Minor bug in cm_SrcViewModeList

Post by *Galizza »

ghisler(Author) wrote: 2025-02-23, 09:24 UTC I will try to execute them in order by using SendMessage instead.
Thanks :!:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50703
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Minor bug in cm_SrcViewModeList

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.55 release candidate 1, please test it!
23.02.25 Fixed: Nested em_* commands were not always executed in order (used PostMessage to execute) (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
Galizza
Senior Member
Senior Member
Posts: 209
Joined: 2018-09-07, 05:21 UTC

Re: Minor bug in cm_SrcViewModeList

Post by *Galizza »

 
Confirmed fixed in Total Commander 11.55 RC1 32Bits // Windows 10 22H2 32Bits


Please someone confirm if it is fixed in 64Bits version. Thanks.
 
User avatar
white
Power Member
Power Member
Posts: 5895
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Minor bug in cm_SrcViewModeList

Post by *white »

Galizza wrote: 2025-05-08, 16:52 UTC Please someone confirm if it is fixed in 64Bits version. Thanks.
I tested your test case. Confirmed with TC 11.51 64-bit. Tested OK with TC 11.55rc1 64-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50703
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Solved - Minor bug in cm_SrcViewModeList

Post by *ghisler(Author) »

Great, thanks!

Moderator message from: ghisler(Author) » 2025-05-13, 09:29 UTC

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply