TC9b2: Command-Sequence in view modes is strange...

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Dennis_Stevens
Senior Member
Senior Member
Posts: 217
Joined: 2013-06-08, 16:16 UTC
Location: NRW, Germany

TC9b2: Command-Sequence in view modes is strange...

Post by *Dennis_Stevens »

Wincmd.ini:

Code: Select all

[ViewModes]
0_name=<Vorgabe>
0_icon=
0_options=-1|-1|0||-1|-1|-1
1_name=Fotos_Temp
1_commands=cm_focustrg,em_setpath_G
1_options=-1|-1|0||255|0|16384
[ViewModeSwitch]
Enabled=1
0_rules=+F:\CloudStation\temp\*\
0_mode=1
Usercmd.ini:

Code: Select all

[em_setpath_G]
button=
cmd=cd G:\Cloudstation\
The line "1_commands" lists two commands.
First TC shall focus the target, then it shall execute a command from usercmd.ini which sets actual path to G:\Cloudstation.
My understanding is, that TC "reads" the commands like I do. First do this and then do that from left to right. Since the target is activated by cm_focustrg, I expect TC to make the directory change in that panel.

The following happens as I enter the directory the rule 0 is applied on:
TC activates the opposite panel (which is correct) and keeps it activated, BUT changes the directory in the INACTIVE (?!) panel (which is now that one where I actually selected the path that should trigger the viewmode switch) to that of em_setpath_G.


Bug or feature? :D
__
Win10 64bit ... running TC is 32bit
#230412 Single User Licence
Commanding Win10 64bit totally with version 11
Dennis_Stevens
Senior Member
Senior Member
Posts: 217
Joined: 2013-06-08, 16:16 UTC
Location: NRW, Germany

Post by *Dennis_Stevens »

With

Code: Select all

cm_wait 100
it works like a charme...
But why does TC have to wait to get that straight?

Can anyone tell? :wink:
#230412 Single User Licence
Commanding Win10 64bit totally with version 11
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work better now for most commands in beta 3, except for background commands like copying.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please test it!
Author of Total Commander
https://www.ghisler.com
Post Reply