Page 1 of 1

Controlling menu/button bar from command line

Posted: 2010-09-05, 14:58 UTC
by alexjak
Hi,

It would be nice to be able to specify an alias for menu and button bar commands, so that they could be invoked from TC command line. For example, if I have a notepad in my menu and specify an "np' alias for that menu item, then typing np<ENTER> in TC would invoke notepad.

In Opera browser, for example, similar feature is called Nickname (for bookmarks).

Regards,

Alex

Posted: 2010-09-05, 15:06 UTC
by HolgerK
Configuration -> Options.. -> Misc. : "Redefine hotkeys"
(x) Alias

You need to define a usercmd (em_..) to call external programs this way.

HTH
Holger

Posted: 2010-09-05, 18:40 UTC
by Balderstrom
A little more clarification:

If you want Notepad in a ButtonBar to open the file that the cursor is on.

Create a User-Command:
em_NotePad__OpenFile
Command: notepad.exe
Parameters: %N
IconFile: %windir%\notepad.exe
ToolTip: NotePad
1) Use em_NotePad_OpenFile for the "Command" on the ButtonBar.
2) And create an Alias, np -> em_NotePad_OpenFile

Posted: 2010-09-06, 07:34 UTC
by MVV
Same thing may be achieved if you put link np.lnk to folder that is in %PATH% variable. :)
However it won't be portable. But you may use Autorun.wdx plugin to change internal TC value of %PATH% variable and to add some special folder with links.