It works not because your entry "regedit.exe" became one of TC internal commands but because regedit.exe is in your windows folder so you don't have to write the full path, just file name only will work!
Actually, I know that. The questions are:
1. Why does TC not show me the tip?
2. Why can't I assign a hotkey? It looks so simple...
3. Well, TC doesn't create a special command for my entry as its number is 9998 - doesn't reside in start menu. So if I add a button with a number 9998 (not getting the comand from the combobox), then (after pushing the button) TC says that the function is not implemented. But if I add a button with a number like 750 (I don't have a corresponding entry in my start menu), then the active panel blinks once and no message appear.
It looks like there are
already 198 commands for 701...898 (or something) organized in a list or an array. Then the question is: why not to allow using such easy commands: write any command you want in totalcmd.inc, assign it to some number, then assign a hotkey for that command - see, no start menu entries needed.
Some of these steps actually work now: you can write anything as a command and assign it to any number, and then use it in some button. But you can't see the tip and you can't assighn a hotkey.
I guess TC does it like this:
1. When you create a button and use the combobox to insert a command, then the command from totalcmd.inc goes to your BAR file directly (without processing if it is a valid command);
2. But when you hover the button TC looks at the command:
if it starts with "cm_", then it looks for it in totalcmd.inc for its tip;
if it doesn't then the command itself is displayed
3. When you press the button TC looks at the command again:
if it starts with "cm_", then it looks for it in totalcmd.inc for its number and then invoke the corresponding command;
if it doesn't look like internal command, then TC sends the command itself (with necessary parameters handling) for execution. That's why
simple adding of commands to totalcmd.inc works with buttons.