Way to Easily Show Keyboard Mapping

English support forum

Moderators: Hacker, petermad, Stefan2, white

brahman
Senior Member
Senior Member
Posts: 208
Joined: 2006-04-26, 13:27 UTC

Way to Easily Show Keyboard Mapping

Post by *brahman »

Hello,

If we click on "Configuration > Misc. > Arrow next to Hotkey:" we can see the keyboard mapping.

Is it possibe to call up that mapping with a command? I forget rarely used shortcuts, and would like to keep this handy compendium easily and quickly accessible.

Thanks.
Regards, Brahman
Win10 & 11 Pro x64
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *JOUBE »

brahman wrote: 2023-07-30, 00:48 UTCIs it possibe to call up that mapping with a command?
There are many way to do that:

- Simple and fast to setup (starter menu, button, dir hotlist):

Code: Select all

%comspec% /k PathTo\inifile.exe PathTo\IniFileWithSectionShortcuts [Shortcuts]
With inifile.exe from here: https://www.horstmuc.de/wbat32d.htm#inifile


- Separate file for section [Shortcuts]:

Code: Select all

[Shortcuts]
redirectsection=wincmd-shortcuts.ini
And then within starter menu, button, dir hotlist

Code: Select all

%comspec% /k type PathTo\IniFile\wincmd-shortcuts.ini

-Via Batch:

Code: Select all

setlocal enabledelayedexpansion
set Fini=PathTo\IniFileWithSectionShortcuts
set showIt=0
for /f "delims=" %%a in (%Fini%) do (  
    set l=%%a
    if "!l:~0,1!"=="[" set showIt=0
    if "!showIt!"=="1" (
        rem set l=!l:C+=Ctrl+!
        rem ...
        echo !l!
        )
    if "%%a"=="[Shortcuts]" set showIt=1
    )
Last edited by JOUBE on 2023-07-30, 08:19 UTC, edited 4 times in total.
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Way to Easily Show Keyboard Mapping

Post by *hi5 »

There is also KEYBOARD.TXT in the TC program folder, and that same list incl. links to other help sections in the "keyboard" page in the help.

That said, there are programs that have a "show keyboard mapping" function that takes into account the default + user defined keyboard shortcuts and generate a new text file. Perhaps something to consider for TC
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6970
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Way to Easily Show Keyboard Mapping

Post by *Horst.Epp »

The TwinKey plugin has a Keyboard mapping function which shows the default keys
and also the user redefined ones. Additionally, duplicated keys are shown.
It needs a config file with the deafult keys for the actual TC.
Last time Petermad provided an update for it.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Way to Easily Show Keyboard Mapping

Post by *petermad »

This
There is also KEYBOARD.TXT in the TC program folder, and that same list incl. links to other help sections in the "keyboard" page in the help.
You can use this button to open the Help for Keyboard Layout directly:

Code: Select all

TOTALCMD#BAR#DATA
hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::keyboard.htm

C:\windows\hh.exe
Open Help for Keybord Layout
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
brahman
Senior Member
Senior Member
Posts: 208
Joined: 2006-04-26, 13:27 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *brahman »

Wow!

Thank you so much for all your suggestions - not only did it solve my question, it also made me learn a lot about the intricacies of TC.
Regards, Brahman
Win10 & 11 Pro x64
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *solid »

Also check Hotkey editor from Ultra TC Editors. It displays current hotkey(s) and original TC hotkey even if it is changed. Also aliases. It can even export the hotkeys to the main menu.
http://utceditors.totalcmd.net
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6970
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Way to Easily Show Keyboard Mapping

Post by *Horst.Epp »

solid wrote: 2023-08-01, 19:56 UTC Also check Hotkey editor from Ultra TC Editors. It displays current hotkey(s) and original TC hotkey even if it is changed. Also aliases. It can even export the hotkeys to the main menu.
http://utceditors.totalcmd.net
For this, we need an updated "tc default hotkeys.hky"
to reflect the TC 11 defaults.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *solid »

Horst.Epp wrote: 2023-08-02, 07:25 UTC For this, we need an updated "tc default hotkeys.hky"
to reflect the TC 11 defaults.
I believe @Petermad took over maintaining this aspect of UTCE.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Way to Easily Show Keyboard Mapping

Post by *petermad »

For this, we need an updated "tc default hotkeys.hky"
to reflect the TC 11 defaults.
I believe @Petermad took over maintaining this aspect of UTCE.
Since TC 11.00 is now feature complete I have released the new datafiles for Ulta TC Editors - see: viewtopic.php?p=438465#p438465
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6970
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Way to Easily Show Keyboard Mapping

Post by *Horst.Epp »

2petermad
Thanks for updating.
I use it in Ultra TC Editors and the Twinkkey plugin.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
sa16
Senior Member
Senior Member
Posts: 325
Joined: 2021-09-10, 07:15 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *sa16 »

Does Hotkeys Editor.exe know about commands with parameters?
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Way to Easily Show Keyboard Mapping

Post by *petermad »

sa16 wrote: 2023-08-02, 11:20 UTC Does Hotkeys Editor.exe know about commands with parameters?
No. :(

EDIT
But the Hotkeys Editor.exe can still show cm_commands with parameters, it just won't show the parameters.

NOTICE! if you use Hotkeys Editor.exe to change or set hotkeys, ALL parameters for ALL cm_commands that you might have set will be LOST!
Last edited by petermad on 2023-08-02, 15:38 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *solid »

petermad wrote: 2023-08-02, 10:10 UTC Since TC 11.00 is now feature complete I have released the new datafiles for Ulta TC Editors - see: viewtopic.php?p=438465#p438465
Thank you for your contribution to the community.

This forum really need like or thanks buttons.
sa16
Senior Member
Senior Member
Posts: 325
Joined: 2021-09-10, 07:15 UTC

Re: Way to Easily Show Keyboard Mapping

Post by *sa16 »

brahman wrote:Is it possibe to call up that mapping with a command?
Button with the TCFS2:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe
/ef "tcm(495,1) eval(settext_wait(,findwnd(`TDLGCONFIGALL`))) sendmsg(findwnd(`TBitBtn`,,findwnd(`TMyGroupBox`,,findwnd(`TPage`,,findwnd(`TNoteBook`,,findwnd(`TDLGCONFIGALL`))),1)),$F5) sendmsg(findwnd(`Button`,,findwnd(`Button`,,findwnd(`Window`,,findwnd(`Window`,,findwnd(`TDLGCONFIGALL`),1)),1)),$F5)"
wcmicons.dll,34
Hotkeys
Post Reply