Corresponding command names to icon numbers in the toolbar
Moderators: petermad, Stefan2, white, Hacker
Corresponding command names to icon numbers in the toolbar
I found another interesting option.
If the user library has a resource with a version of the library, then it can be used to automatically change icons in the toolbar and in the main menu. By type WCMICON2.DLL:
[img]https://i.ibb.co/X3mxyGY/image.gif[/img]
But only the first 87 icons can be used in the toolbar. As in WCMICONS.DLL, WCMICON2.DLL:
[img]https://i.ibb.co/87HJ4dy/1.gif[/img]
What commands do the icon numbers correspond to? For example - cm_Rereadsource is icon 0, cm_Config - 34.
Can I get the whole list?
If the user library has a resource with a version of the library, then it can be used to automatically change icons in the toolbar and in the main menu. By type WCMICON2.DLL:
[img]https://i.ibb.co/X3mxyGY/image.gif[/img]
But only the first 87 icons can be used in the toolbar. As in WCMICONS.DLL, WCMICON2.DLL:
[img]https://i.ibb.co/87HJ4dy/1.gif[/img]
What commands do the icon numbers correspond to? For example - cm_Rereadsource is icon 0, cm_Config - 34.
Can I get the whole list?
Re: Corresponding command names to icon numbers in the toolbar
There are icons for the main menu as well. Well, converting numbers into letters is another activity
Re: Corresponding command names to icon numbers in the toolbar
Yes if you read the wiki you canAkulaBig wrote: 2024-12-05, 10:50 UTC What commands do the icon numbers correspond to? For example - cm_Rereadsource is icon 0, cm_Config - 34.
Can I get the whole list?
https://www.ghisler.ch/wiki/index.php?title=Filelist_icons#Customize_filelist_icons
Hoecker sie sind raus!
Re: Corresponding command names to icon numbers in the toolbar
I need to find out which icons from WCMICONS.DLL correspond to the commands in the toolbar.
[img]https://i.ibb.co/MPFg0NC/2024-12-05-184509.png[/img]
[img]https://i.ibb.co/MPFg0NC/2024-12-05-184509.png[/img]
Re: Corresponding command names to icon numbers in the toolbar
You can see this on config buttonbar window (as your image) and DEFAULT.BAR file - just open it as a text.
Look (only button and cmd lines)
2 Sir_SiLvA
This page shows only icons from %COMMANDER_EXE% for filelist and some other windows (search, synch, compare) - NOT BUTTONBAR
Look (only button and cmd lines)
Spoiler
button1=wcmicons.dll
cmd1=cm_Rereadsource
button2=
button3=wcmicons.dll,3
cmd3=cm_srcshort
button4=wcmicons.dll,4
cmd4=cm_srclong
button5=wcmicons.dll,26
cmd5=cm_SrcThumbs
button6=wcmicons.dll,51
cmd6=cm_SwitchSeparateTree
button7=
button8=wcmicons.dll,50
cmd8=cm_DirBranch
button9=
button10=wcmicons.dll,11
cmd10=cm_ExchangeSelection
button11=
button12=wcmicons.dll,18
cmd12=cm_GotoPreviousDir
button13=wcmicons.dll,19
cmd13=cm_GotoNextDir
button14=
button15=wcmicons.dll,30
cmd15=cm_PackFiles
button16=wcmicons.dll,31
cmd16=cm_UnpackFiles
button17=
button18=wcmicons.dll,16
cmd18=cm_FtpConnect
button19=wcmicons.dll,17
cmd19=cm_FtpNew
button20=
button21=wcmicons.dll,47
cmd21=cm_SearchFor
button22=wcmicons.dll,46
cmd22=cm_MultiRenameFiles
button23=wcmicons.dll,48
cmd23=cm_FileSync
button24=wcmicons.dll,45
cmd24=cm_CopyFullNamesToClip
button25=
button26=notepad.exe
cmd26=notepad.exe
button27=wcmicons.dll
cmd27=cm_GoToDir
cmd1=cm_Rereadsource
button2=
button3=wcmicons.dll,3
cmd3=cm_srcshort
button4=wcmicons.dll,4
cmd4=cm_srclong
button5=wcmicons.dll,26
cmd5=cm_SrcThumbs
button6=wcmicons.dll,51
cmd6=cm_SwitchSeparateTree
button7=
button8=wcmicons.dll,50
cmd8=cm_DirBranch
button9=
button10=wcmicons.dll,11
cmd10=cm_ExchangeSelection
button11=
button12=wcmicons.dll,18
cmd12=cm_GotoPreviousDir
button13=wcmicons.dll,19
cmd13=cm_GotoNextDir
button14=
button15=wcmicons.dll,30
cmd15=cm_PackFiles
button16=wcmicons.dll,31
cmd16=cm_UnpackFiles
button17=
button18=wcmicons.dll,16
cmd18=cm_FtpConnect
button19=wcmicons.dll,17
cmd19=cm_FtpNew
button20=
button21=wcmicons.dll,47
cmd21=cm_SearchFor
button22=wcmicons.dll,46
cmd22=cm_MultiRenameFiles
button23=wcmicons.dll,48
cmd23=cm_FileSync
button24=wcmicons.dll,45
cmd24=cm_CopyFullNamesToClip
button25=
button26=notepad.exe
cmd26=notepad.exe
button27=wcmicons.dll
cmd27=cm_GoToDir
This page shows only icons from %COMMANDER_EXE% for filelist and some other windows (search, synch, compare) - NOT BUTTONBAR
Re: Corresponding command names to icon numbers in the toolbar
But not all correspondences are there. Please note that it was not in vain that I brought the correspondence cm_Config - 34. It is not in your list. And there are several dozen more such correspondences.Gral wrote: 2024-12-05, 14:44 UTC You can see this on config buttonbar window (as your image) and DEFAULT.BAR file - just open it as a text.
Re: Corresponding command names to icon numbers in the toolbar
Here viewtopic.php?p=465100#p465100 you asked for icons on buttonbar.
Edited DEFAULT.BAR content which i post is COMPLETE answer for this!
Earlier i posted that full list of icons mappings for menus is WCMICONS.INC file. For translate numbers to commands see TOTALCMD.INC.
Edited DEFAULT.BAR content which i post is COMPLETE answer for this!
Earlier i posted that full list of icons mappings for menus is WCMICONS.INC file. For translate numbers to commands see TOTALCMD.INC.
Re: Corresponding command names to icon numbers in the toolbar
I imported WCMICONS.INC and TOTALCMD.INC into a google spreadsheet and used VLOOKUP to combine the data.
Code: Select all
icon cmd no command description
0 540 cm_RereadSource Reread source
1 500 cm_CDtree Popup directory tree
2 103 cm_LeftTree Left: Directory tree
2 203 cm_RightTree Right: Directory tree
2 303 cm_SrcTree Source: Directory tree
3 101 cm_LeftShort Left: Only file names
3 201 cm_RightShort Right: Only file names
3 301 cm_SrcShort Source: Only file names
4 102 cm_LeftLong Left: All file details
4 202 cm_RightLong Right: All file details
4 302 cm_SrcLong Source: All file details
5 121 cm_LeftByName Left: Sort by name
5 221 cm_RightByName Right: Sort by name
5 321 cm_SrcByName Source: Sort by name
6 122 cm_LeftByExt Left: Sort by extension
6 222 cm_RightByExt Right: Sort by extension
6 322 cm_SrcByExt Source: Sort by extension
7 124 cm_LeftByDateTime Left: Sort by date
7 224 cm_RightByDateTime Right: Sort by date
7 324 cm_SrcByDateTime Source: Sort by date
8 123 cm_LeftBySize Left: Sort by size
8 223 cm_RightBySize Right: Sort by size
8 323 cm_SrcBySize Source: Sort by size
9 125 cm_LeftUnsorted Left: Unsorted
9 225 cm_RightUnsorted Right: Unsorted
9 325 cm_SrcUnsorted Source: Unsorted
10 130 cm_LeftNegOrder Left: Reversed order
10 230 cm_RightNegOrder Right: Reversed order
10 330 cm_SrcNegOrder Source: Reversed order
11 525 cm_ExchangeSelection Invert selection
11 3321 cm_ExchangeSelBoth Invert selection (files+folders)
11 3322 cm_ExchangeSelFiles Invert selection (files)
11 3323 cm_ExchangeSelFolders Invert selection (folders)
12 111 cm_LeftExecs Left: Only programs
12 211 cm_RightExecs Right: Only programs
12 311 cm_SrcExecs Source: Only programs
13 112 cm_LeftAllFiles Left: All files
13 212 cm_RightAllFiles Right: All files
13 312 cm_SrcAllFiles Source: All files
14 498 cm_ButtonConfig Conf: Button bar
14 583 cm_ButtonConfig2 Conf: Button bar 2 (vertical)
15 2002 cm_GoToParent Go to parent directory
16 550 cm_FtpConnect Connect to FTP
17 551 cm_FtpNew New FTP connection
18 570 cm_GoToPreviousDir Go back
18 573 cm_GoToPreviousLocalDir Go back, no ftp
19 571 cm_GoToNextDir Go forward
19 574 cm_GoToNextLocalDir Go forward, no ftp
20 2123 cm_OpenControls Control panel
21 100 cm_LeftComments Left: Show comments
21 200 cm_RightComments Right: Show comments
21 300 cm_SrcComments Source: Show comments
22 104 cm_LeftQuickView Left: Quick view panel
22 106 cm_LeftQuickInternalOnly Left: Quick view, no plugins
22 107 cm_LeftHideQuickView Left: Quick view panel off
22 204 cm_RightQuickView Right: Quick view panel
22 206 cm_RightQuickInternalOnly Right: Quick view, no plugins
22 207 cm_RightHideQuickView Right: Quick view panel off
22 304 cm_SrcQuickView Source: Quick view panel
22 306 cm_SrcQuickInternalOnly Source: Quick view, no plugins
22 307 cm_SrcHideQuickView Source: Quick view panel off
22 2941 cm_SeparateQuickView Separate quick view window
22 2942 cm_SeparateQuickInternalOnly Separate quick view, no plugins
23 305 cm_VerticalPanels File windows above each other
24 113 cm_LeftUserSpec Left: Last selected
24 213 cm_RightUserSpec Right: Last selected
24 313 cm_SrcUserSpec Source: Last selected
25 114 cm_LeftUserDef Left: Select user type
25 214 cm_RightUserDef Right: Select user type
25 314 cm_SrcUserDef Source: Select user type
26 69 cm_LeftThumbs Left: Thumbnail view
26 169 cm_RightThumbs Right: Thumbnail view
26 269 cm_SrcThumbs Source: Thumbnail view
27 903 cm_List View with Lister
27 1006 cm_ListInternalOnly Lister without plugins/multimedia, single file
27 2933 cm_ListInternalMulti Lister without plugins/multimedia, selected
27 2934 cm_ListOnly Lister with plugins/multimedia, single file
27 2935 cm_ListMulti Lister with plugins/multimedia, selected
28 581 cm_ConfigChangeIniFiles Open ini files in notepad
28 904 cm_Edit Edit (Notepad)
28 2931 cm_EditNewFile Create+Open new text file
28 2932 cm_EditExistingFile Edit file under cursor (Shift ignored)
29 907 cm_MkDir Make directory
29 911 cm_MkDirOther Make directory in target panel
30 508 cm_PackFiles Pack files
31 509 cm_UnpackFiles Unpack all
32 1002 cm_RenameOnly Rename (Shift+F6)
32 1007 cm_RenameSingleFile Rename file under cursor
33 502 cm_SetAttrib Change attributes
34 474 cm_7ZipPackerConfig Conf: 7-ZIP packer
34 475 cm_HistoryConfig Conf: History
34 476 cm_LayoutConfig Conf: Layout
34 477 cm_IconConfig Conf: Icons
34 478 cm_RefreshConfig Conf: Refresh file lists
34 479 cm_QuickSearchConfig Conf: Quick Search
34 480 cm_IgnoreConfig Conf: Ignore list
34 481 cm_LogConfig Conf: Log file
34 482 cm_ThumbnailsConfig Conf: Thumbnails
34 484 cm_PluginsConfig Conf: Plugins
34 485 cm_ZipPackerConfig Conf: ZIP packer
34 486 cm_DisplayConfig Conf: Display
34 487 cm_CopyConfig Conf: Copy/Delete
34 488 cm_DirTabsConfig Conf: Folder tabs
34 489 cm_FtpConfig Conf: FTP options
34 490 cm_Config Conf: Layout (first page)
34 491 cm_PackerConfig Conf: Packer
34 492 cm_FontConfig Conf: Font
34 494 cm_ColorConfig Conf: Colors
34 495 cm_Confirmation Conf: Misc, Confirmation
34 496 cm_EditConfig Conf: Viewer/Editor
34 497 cm_ConfTabChange Conf: Tabstops/Data formats
34 499 cm_LanguageConfig Conf: Language
34 516 cm_Config2 Conf: Operation
34 700 cm_ChangeStartMenu Change Start menu
34 2939 cm_ConfigViewModes Conf: View Modes
34 2940 cm_ConfigViewModeSwitch Conf: Auto-switch view modes
34 3036 cm_ConfigLister Conf: Lister
35 533 cm_CompareDirs Compare dirs
35 534 cm_DirMatch Mark newer
35 536 cm_CompareDirsWithSubdirs Also mark subdirs not present in other dir
36 2014 cm_CountDirContent Calculate space occupied by subdirs in current dir
37 531 cm_Exchange Swap panels
37 535 cm_ExchangeWithTabs Swap all Tabs
38 504 cm_PrintFile Print file
38 2027 cm_PrintDir Print current directory (with preview)
38 2028 cm_PrintDirSub Print dir with subdirs
39 521 cm_SpreadSelection Select group
39 546 cm_SpreadSelectionCurrentExt Select group, pre-load extension under cursor
40 522 cm_ShrinkSelection Unselect group
40 547 cm_ShrinkSelectionCurrentExt Unselect group, pre-load extension under cursor
40 3314 cm_ClearFiles Unselect group: just files
40 3315 cm_ClearFolders Unselect group: just folders
40 3316 cm_ClearSelCfg Unselect group (files or both, as configured)
41 527 cm_SelectCurrentExtension Select all files with same ext.
42 529 cm_RestoreSelection Selection before last operation
43 530 cm_SaveSelection Temporarily save selection
44 523 cm_SelectAll Select all (files or both, as configured)
44 541 cm_SelectCurrentName Select all files with same name
44 543 cm_SelectCurrentNameExt Select all files with same name+ext.
44 3301 cm_SelectAllBoth Select both files+folders
44 3302 cm_SelectAllFiles Select all files
44 3303 cm_SelectAllFolders Select all folders
45 2017 cm_CopyNamesToClip Copy filenames to clipboard
45 2018 cm_CopyFullNamesToClip Copy names with full path
45 2021 cm_CopyNetNamesToClip Copy names with UNC path
45 2029 cm_CopySrcPathToClip Copy source path to clipboard
45 2030 cm_CopyTrgPathToClip Copy target path to clipboard
45 3035 cm_CopyPathOfFilesToClip Copy path name of each file to clipboard
46 2400 cm_MultiRenameFiles Rename multiple files
47 501 cm_SearchFor Search for
47 517 cm_SearchForInCurDir Search in directory under the cursor
47 545 cm_SearchStandalone Search in separate process
48 2020 cm_FileSync Synchronize directories
49 2022 cm_CompareFilesByContent File comparison
49 2040 cm_IntCompareFilesByContent Use internal compare tool
50 2026 cm_DirBranch Show all files in current dir and all subdirs
50 2034 cm_LeftDirBranch Left: Branch view
50 2035 cm_RightDirBranch Right: Branch view
50 2046 cm_DirBranchSel Show selected files, and all in selected subdirs
50 2047 cm_LeftDirBranchSel Left: Branch view, only selected
50 2048 cm_RightDirBranchSel Right: Branch view, only selected
51 3203 cm_SwitchSeparateTree Switch through tree panel options
52 70 cm_LeftCustomViewMenu Left: Custom view menu
52 133 cm_LeftViewModeList Left: View mode menu
52 170 cm_RightCustomViewMenu Right: Custom view menu
52 233 cm_RightViewModeList Right: View mode menu
52 270 cm_SrcCustomViewMenu Source: Custom view menu
52 333 cm_SrcViewModeList Source: View mode menu
52 5501 cm_SrcNextCustomView Source: Next custom view
52 5502 cm_SrcPrevCustomView Source: Previous custom view
52 5503 cm_TrgNextCustomView Target: Next custom view
52 5504 cm_TrgPrevCustomView Target: Previous custom view
52 5505 cm_LeftNextCustomView Left: Next custom view
52 5506 cm_LeftPrevCustomView Left: Previous custom view
52 5507 cm_RightNextCustomView Right: Next custom view
52 5508 cm_RightPrevCustomView Right: Previous custom view
53 512 cm_NetConnect Network connections
54 513 cm_NetDisconnect Disconnect network drives
55 610 cm_HelpIndex Help index
55 620 cm_Keyboard Keyboard help
55 630 cm_Register Registration info
56 483 cm_CustomColumnConfig Conf: Custom columns
56 2920 cm_CustomColumnDlg Change current custom columns
59 2036 cm_CopyFileDetailsToClip Copy all shown columns
59 2037 cm_CopyFpFileDetailsToClip Copy all columns, with full path
59 2038 cm_CopyNetFileDetailsToClip Copy all columns, with UNC path
59 2090 cm_CopyHdrFileDetailsToClip Copy all shown columns, with headers
59 2091 cm_CopyHdrFpFileDetailsToClip Copy all columns, with headers+full path
59 2092 cm_CopyHdrNetFileDetailsToClip Copy all columns, with headers+UNC path
60 518 cm_TestArchive Test selected archives
61 565 cm_CRCcheck Verify CRC checksums
62 905 cm_Copy Copy files
62 3100 cm_CopySamePanel Copy within panel
62 3101 cm_CopyOtherPanel Copy to other
63 906 cm_RenMov Rename/Move files
63 1005 cm_MoveOnly Move (F6)
64 908 cm_Delete Delete files
65 1004 cm_CreateShortcut Create a shortcut
66 562 cm_Encode Encode MIME/UUE/XXE
67 563 cm_Decode Decode MIME/UUE/XXE/BinHex
68 560 cm_Split Split file into pieces
69 561 cm_Combine Combine partial files
70 3312 cm_SelectFiles Select group: just files
71 3313 cm_SelectFolders Select group: just folders
72 537 cm_SelectCurrentPath Select all in same path (for branch view+search)
72 3311 cm_SelectBoth Select group: files+folders
73 2023 cm_ShowOnlySelected Hide files which aren't selected
74 559 cm_OpenTransferManager Background transfer manager
75 2600 cm_SyncChangeDir Synchronous directory changing in both windows
76 3200 cm_SeparateTreeOff Disable separate tree panel
77 3201 cm_SeparateTree1 One separate tree panel
77 3204 cm_ToggleSeparateTree1 One separate tree panel on/off
78 3202 cm_SeparateTree2 Two separate tree panels
78 3205 cm_ToggleSeparateTree2 Two separate tree panels on/off
79 2011 cm_SwitchHidSys Turn hidden/system files on and off
79 3013 cm_SwitchHid Turn hidden files on and off
79 3014 cm_SwitchSys Turn system files on and off
80 2921 cm_SwitchWatchDirs Enable/disable WatchDirs auto-refresh temporarily
81 2922 cm_SwitchIgnoreList Enable/disable ignore list file to not show file names
82 2924 cm_CommandBrowser Browse internal commands
83 3001 cm_OpenNewTab Open new tab
83 3002 cm_OpenNewTabBg Open new tab in background
83 3003 cm_OpenDirInNewTab Open dir under cursor in tab
83 3004 cm_OpenDirInNewTabOther Open dir under cursor (other window)
83 3027 cm_OpenNewTabOther Open new tab (other window)
83 3028 cm_OpenNewTabBgOther Open new tab in background (other window)
84 3007 cm_CloseCurrentTab Close tab
85 3008 cm_CloseAllTabs Close all
85 3017 cm_CloseDuplicateTabs Close duplicate tabs
86 532 cm_MatchSrc target=Source
Re: Corresponding command names to icon numbers in the toolbar
No, DEFAULT.BAR contains only part of the available commands and icons.Gral wrote: 2024-12-05, 16:08 UTC Edited DEFAULT.BAR content which i post is COMPLETE answer for this!
I know that. But it is a lot of work to match the command numbers to their name, and then to the icon numbers. And INC files contain not only icons for the toolbar, but also icons for the main menu. But I only need it for the toolbar.Gral wrote: 2024-12-05, 16:08 UTC Earlier i posted that full list of icons mappings for menus is WCMICONS.INC file. For translate numbers to commands see TOTALCMD.INC.
We need a list of commands for the toolbar that correspond to the icons offered for selection.
Re: Corresponding command names to icon numbers in the toolbar
Thanks a lot. This is what you need. Even if not all of these icons are offered in the toolbar. Some are for the main menu. But I can choose the ones I need.white wrote: 2024-12-05, 18:32 UTC I imported WCMICONS.INC and TOTALCMD.INC into a google spreadsheet and used VLOOKUP to combine the data.
Re: Corresponding command names to icon numbers in the toolbar
I checked. Works great. Thanks again.
Re: Corresponding command names to icon numbers in the toolbar
DEFAULT.BAR is a buttonbar (what you call a toolbar)AkulaBig wrote: 2024-12-05, 13:48 UTC I need to find out which icons from WCMICONS.DLL correspond to the commands in the toolbar.
That's something different than "toolbar"No, DEFAULT.BAR contains only part of the available commands and icons.
Re: Corresponding command names to icon numbers in the toolbar
2AkulaBig
My Extended Menus comes with a button bar with all the buttons/commands in wcmicons.dll / WCMICON2.DLL - you can get the bar-file here: https://tcmd.madsenworld.dk/win10amd64_3_eng.bar
My Extended Menus comes with a button bar with all the buttons/commands in wcmicons.dll / WCMICON2.DLL - you can get the bar-file here: https://tcmd.madsenworld.dk/win10amd64_3_eng.bar
License #524 (1994)
Danish Total Commander Translator
TC 11.50rc3 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1385a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.50rc3 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1385a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Corresponding command names to icon numbers in the toolbar
Wow! This is the best solution. Thanks a lot. Very convenient.petermad wrote: 2024-12-05, 23:08 UTC 2AkulaBig
My Extended Menus comes with a button bar with all the buttons/commands in wcmicons.dll / WCMICON2.DLL - you can get the bar-file here: https://tcmd.madsenworld.dk/win10amd64_3_eng.bar