[Implemented] Missing info in TC's Help for em_ and cm_ commands

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

[Implemented] Missing info in TC's Help for em_ and cm_ commands

Post by *petermad »

Regarding the use of user-defined commands (AKA extended commands, external commands or em_commands) there is a lack of information about this in the Help.

The use of em_commands should be added at least in the following places.

dlg_configbuttonbar.htm
Dialog box: Configuration - Change button bar
Command:

2. You can also place one or more of Total Commander's internal menu commands here comma-separated. Just click on the button with the magnifying glass and choose a command from the dialog box "Choose command".
Example for multiple commands: cm_SelectAll,cm_Copy
cm_wait x adds a delay of x milliseconds, e.g. cm_SelectAll,cm_wait 1000,cm_Copy
You can open a virtual folder with one of the following commands:
cm_OpenDesktop, cm_OpenDrives, cm_OpenControls, cm_OpenFonts, cm_OpenNetwork, cm_OpenPrinters, cm_OpenRecycled
in this help page it should also be mentioned that the numbers given in totalcmd.inc for cm_commands can be used - either in decimal or hexadecimal.


dlg_mainmenu.htm
Menu file layout
Identifiers:

All identifiers start with the letters cm_ (abbr. for command). Identifiers which start with cm_src act upon the source directory. Identifiers with cm_left act on the left, with cm_right on the right directory window.

Only identifiers which are in totalcmd.inc can be used! You can also directly specify the numbers given in totalcmd.inc. However, the file totalcmd.inc must be present at runtime if you want to use an external menu.
it is not true that only identifiers which are in totalcmd.inc can be used - em_commands are also valid


dlg_configconfirmation.htm
Configuration - Misc.
Redefine hotkeys (keyboard remapping)

Command: Assign an internal command to the hotkey/alias. Click on the magnifying glass button to open the dialog box "Choose command"...
it should say "Assign an internal or external command to the hotkey/alias."
Last edited by petermad on 2022-06-10, 23:33 UTC, edited 1 time 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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *petermad »

The first item: Dialog box: Configuration - Change button bar (dlg_configbuttonbar.htm) is updated in TC 10 b1a - the two latter are not yet changed.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *petermad »

Bump*

dlg_mainmenu.htm and dlg_configconfirmation.htm are still not updated with reference to em_commands (see above)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *ghisler(Author) »

dlg_mainmenu has already been updated to show this text:
Only identifiers which are in totalcmd.inc can be used (plus user-defined em_commands)!
I will change the sentence
All identifiers start with the letters cm_ (abbr. for command).
to
All identifiers start with the letters cm_ (abbr. for command) or em_ (user-defined commands).

dlg_configconfirmation has also been updated to this text:
Redefine hotkeys (keyboard remapping)
Assign an internal or external command (cm_command or em_command) to unused or already used shortcut keys, or define an alias for the command line.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *petermad »

2ghisler(Author)
In dlg_configconfirmation there is still this line (further down):
Command: Assign an internal command to the hotkey/alias.
should be sometning like:
Command: Assign an internal or external command to the hotkey/alias.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *ghisler(Author) »

Ah, I see, I can change that.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Missing info in TC's Help for em_ and cm_ commands

Post by *petermad »

Confirmed changed in TC 10.00 :-)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply