MENUITEM Question

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

MENUITEM Question

Post by *Boofo »

Is there a way to add a link to a MenuItem? I want to make it like the Visit Totral Commander's Web Site menu item.

Something like this:

MENUITEM "Forum", http://www.ghisler.ch/board/index.php?language=english

Can it be done? Somehow?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Boofo

No problem:

1.
Create a new start menu entry.
Use http://www.ghisler.ch/board/index.php?language=english as command.
Remember the position of the new start menu entry.

2.
Open your menu file (or use a menu editor).
Add the new menu item: MENUITEM "Forum", cm_usermenu1
Restart TC.

cm_usermenu1 is defined as 701 in Totalcmd.inc. This means if your start menu entry is at position 5 you'll have to use the cm_usermenu5, which is set to 705 and so on. You can change the command name from cm_usermenu1 to cm_TCForum, if you want.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Lefteous wrote:2Boofo

No problem:

1.
Create a new start menu entry.
Use http://www.ghisler.ch/board/index.php?language=english as command.
Remember the position of the new start menu entry.

2.
Open your menu file (or use a menu editor).
Add the new menu item: MENUITEM "Forum", cm_usermenu1
Restart TC.

cm_usermenu1 is defined as 701 in Totalcmd.inc. This means if your start menu entry is at position 5 you'll have to use the cm_usermenu5, which is set to 705 and so on. You can change the command name from cm_usermenu1 to cm_TCForum, if you want.
Ah ha! Now the "User Menu" in pdavit's Extened menu makes sense. I was wondering what that was all about.

Thank you, sir. It works as advertised. ;)

I have a couple of last minute questions, if that is ok. If you have submenus in the start menu, are they considered the next position or is that only for the main menus?

And how many more user menu entries can you add? It starts at 701, where does it end?
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

And how many more user menu entries can you add? It starts at 701, where does it end?
From 701 => 899
Alain
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Coco wrote:
And how many more user menu entries can you add? It starts at 701, where does it end?
From 701 => 899
Does that include sub-menus or are they not counted?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Boofo
Does that include sub-menus or are they not counted?
Yes all menu elements have to be included in the count.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Lefteous wrote:2Boofo
Does that include sub-menus or are they not counted?
Yes all menu elements have to be included in the count.
Thank you, sir. ;) The reason I was asking is because I have a Start Menu that contains bewteen 50 and 75 items (including sub-menus) that I use daily and I wanted to make sure I needed to count everything when assigning menu entry numbers.

Thanks again for all of the help. You've been great! ;)
Post Reply