Controlling menu/button bar from command line

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
alexjak
Junior Member
Junior Member
Posts: 15
Joined: 2010-09-05, 14:27 UTC

Controlling menu/button bar from command line

Post 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
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Configuration -> Options.. -> Misc. : "Redefine hotkeys"
(x) Alias

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

HTH
Holger
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post 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
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
Post Reply