I like this idea.
In Total Commander this is solved, for example, as follows:
Context menu (right click on an existing button)
There is a code behind it that you could also use, for example, in forum inquiries.
Example of a button in Total Commander with the code behind it:
em_copynamestofileB (Unicode;UCS-2 LE BOM;UTF-16LE with Signature)|Copy selected filenames with full path to file in current folder|https://ghisler.ch/board/viewtopic.php?p=369080#p369080
[url=https://www.ghisler.ch/board/viewtopic.php?p=363553#p363553]Explanation of the button:[/url]
Line 1: This allows TC to recognize this code in the clipboard and to show the ‘Paste’ entry in the buttonbar context menu.
Line 2: The command
Line 3: The parameters for the command (the leading ‘?’ causes the command to be displayed when executing)
Line 4: Path to the file of the icon
Line 5: The tooltip
Line 6: The start path
Line 7: Call parameter minimized as icon / maximized (usercmd.ini: iconic)
Line 8: The number of the internal TC command if line 2 contains one, otherwise ‘-1’ for other commands.