cm_usermenu8 doesn't work in menu by text -Bug??

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

cm_usermenu8 doesn't work in menu by text -Bug??

Post by *Sheepdog »

When I create an adapted menu and try to use any 'cm_usermenu??' I can use only for the menus 1 to 7 the command 'cm_usermenu??'.

If I use 'cm_usermenu8' or higher I receive at the start of TC the error message 'Unbekannter Bezeichner in Zeile xxx! cm_usermenu??' and the dependent menu is gray.
When I use instead the number 708 it works fine.

It's annoying while there are now two nice Menu Editors and I've always to make some changes by hand, because I prefer the text comand while the numbers are so meaningless.

For the reason is in my usermenu here is the section from wincmd.ini

Code: Select all

menu1=Dateien Bearbeiten
cmd1=%COMMANDER_PATH%\AddOn\textPad\TextPad.exe
param1=..\..\AddOn\Textpad\SAMPLES\wincmd.ini.syn default.bar boot.bar proggie.bar addon.bar ..\..\totalcmd.inc fsplugin.ini ..\..\language\Wcmd_deu_step.mnu ..\..\language\Wcmd_deu_step.lng wcx_ftp.ini wincmd.ini
path1=%COMMANDER_PATH%\ini\xppro
menu2=-Proggies
menu3=Redate
cmd3=%COMMANDER_PATH%\plugin\addon\redate.exe
param3=%L
menu4=Datenbank viewer
cmd4=%COMMANDER_PATH%\plugin\addon\dbview.exe
param4=/L:%L
menu5=Verz: Root von C
cmd5=cd c:\
menu6=8.3 Names
cmd6=%COMMANDER_PATH%\lst2desc.exe
param6=/L:%L
menu7=Examdiff
cmd7=%COMMANDER_PATH%\plugin\addon\ExamDiff.exe
param7=/l:%L
menu8=Pfad kopieren
cmd8=%COMMANDER_PATH%\plugin\addon\Lst2Clip.exe
param8=/L:%L
menu9=ResizeWindow
cmd9=%COMMANDER_PATH%\plugin\addon\ResizeEnableRunner.exe
menu10=--
menu11=-Drives
menu12=W->
cmd12=%COMMANDER_PATH%\addon\wizmo.exe
param12=open=w quiet
menu13=w<-
cmd13=%COMMANDER_PATH%\addon\wizmo.exe
param13=close=w quiet
menu14=S->
cmd14=%COMMANDER_PATH%\addon\wizmo.exe
param14=open=s quiet
menu15=S<-
cmd15=%COMMANDER_PATH%\addon\wizmo.exe
param15=close=s quiet
menu16=--
menu17=Pfad mit DOS Namen kopieren
cmd17=%COMMANDER_PATH%\AddOn\lst2Clip\Lst2Clip.exe
param17=/L:%l
menu18=UNC Pfad kopieren
cmd18=cm_CopyNetNamesToClip
menu19=unload plugins
cmd19=cm_UnloadPlugins
menu20=FTP Open
cmd20=ftpopen AVM2
param20=AVM2
menu21=Help
cmd21=%Commander_path%\Totalcmd_eng.hlp
sheepdog
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Sheepdog

It's definitely an error in your Totalcmd.inc.
I prefer the text comand while the numbers are so meaningless.
You can type whatever you want instead of cm_usermenuX.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Sheepdog,
And BTW I think you have to the cm_usermenuXY commands defined on your totalcmd.inc, because without that the commands are meaningless.

HTH
Roman
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

2Lefteous
It's definitely an error in your Totalcmd.inc.
It seems to be right, because when I use the totalcmd.inc from installation-cab it works.
But I can't figure out the diffrence. An compare by content shows that the Usermenu entries are identical - apart from the german Comments.

2Hacker

Thanks for the tip but if I hadn't added them already the call with numbers would not work. :wink:

sheepdog
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 11-02-2004 16:46:27 +0000 Sheepdog wrote:

S> Thanks for the tip but if I hadn't added them already the
S> call with numbers would not work.


Read FAQ.txt.[/face]
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Now I found what happens:

I took the sorted and separated totalcmd.inc from Lefteous 'TCCommands '.

I did copy each section of it to the original 'totalcmd.inc' and removed the commands by hand. When I was at section [Navigation] the described error occured. Then I found out that it did not occur, when I removed the headline [Navigation]=0. Each new section produced the error again and removing the separtor-headline cured it. After all I found out, that removing the zero from all lines up from [Navigation] cured my problem.

But Christian wrote, that to make your sections visible, you have to add this '=0' as I remember.

So it is definitely a bug in TC :lol:

BTW if I add only one '=0' there is one error reportet ( cm_usermenu15) and if there are two '=0' added there two times the message 'Unbekannter Bezeichner ...' (cm_usermenu14 cm_usermenu15)- if it helps find the bug.
And if I add 10 additional separators the error occures even at cm_usermenu1

sheepdog
Post Reply