solved [TC 11.00b6] The /T= parameter does not work for most supported cm_commands for keyboard remapping

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14816
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

solved [TC 11.00b6] The /T= parameter does not work for most supported cm_commands for keyboard remapping

Post by *petermad »

The commands cm_Copy, cm_RenMov, cm_CreateShortcut and cm_PackFiles all support the /T= parameter for setting the path.

For setting the path to that of the current panel these em_commands all works fine:

Code: Select all

[em_CreateShortcutSame]
cmd=cm_CreateShortcut /
param=T="%P%O.lnk"

[em_CopySame]
cmd=cm_Copy /
param=T="%P%O.bak"

[em_MoveSame]
cmd=cm_RenMov /
param=T="%P%O.bak"

[em_PackFilesSame]
cmd=cm_Packfiles /
param=T="%P%O.zip"

But when making Shortcuts with the same parameters:

Code: Select all

[Shortcuts]
Q=cm_Copy
Q_params=/T="%P%O.bak"

C+W=Cm_RenMov
C+W_params=/T="%P%O.bak"

C+E=cm_CreateShortcut
C+E_params=/T="%P%=.lnk"

C+R=cm_PackFiles
C+R_params=/T="%P%O.zip"
then it is ONLY the shortcut for cm_PackFiles (C+R) that uses the path from the /T parameter - I expect all 4 command to use the /T parameter.

It is not because of using %P%O in the parameters - the /T parameter is also neglected for paths like /T="c:\test\"

The same applies to using the /W= parameter in shortcuts for cm_Copy, cm_RenMov and cm_CreateShortcut commands.

EDIT: It is acually all parameters that do not work with keyboard remapping for the commands cm_Copy, cm_RenMov, cm_CreateShortcut AND cm_UnpackFiles - I see no reason why it should work for cm_PackFiles, but not for the other 4 commands that accepts /-parameters.
Last edited by petermad on 2023-06-14, 21:00 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] The /T= parameter does not work for most supported cm_commands for keyboard remapping

Post by *ghisler(Author) »

These commands don't currently accept parameters in the parameter field, only in the command field, so they can't currently used in hotkeys. However, I have already added it for the upcoming beta 7.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14816
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b6] The /T= parameter does not work for most supported cm_commands for keyboard remapping

Post by *petermad »

history.txt wrote:09.06.23 Fixed: Parameters didn't work in hotkeys and the command line for cm_Copy, cm_RenMov and cm_CreateShortcut (32/64)
Confirmed fixed in TC 11.00b7 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply