Help - Search - Members - Calendar
Full Version: "my" CDshell menu
The CD Forum > CD Shell and Boot Scriptor > Requests & Contributions
Plauderer
Hi @all,

i recently reworked my CDshell-menu script and thought it would be about time to post it here. Just in case someone is interested. smile.gif

I made a screenshot:


I used DoctorXPs and ZULU Niners scripts as a start, so many thanks to them!

Plauderer
Bandito
QUOTE (Plauderer @ Dec 8 2005, 03:37 PM) *
Hi @all,

i recently reworked my CDshell-menu script and thought it would be about time to post it here. Just in case someone is interested. smile.gif


I used DoctorXPs and ZULU Niners scripts as a start, so many thanks to them!

Plauderer



Hey, looks great. I was playing around with it though and got stuck.

Oddly I kept getting an error whenever I select an option and hit [ENTER]

The error is as follows:
Error: Label not found.
[Command: call] [Line: 583.1] [File: menu.cds]


When I look at menu.cds I have the following on lines 582, 583 & 584

if ($lastKey == key[ENTER]);
then call do_sm$>$mm_active$>$sm_active;
then goto End

The line in the config.sys that I'm selecting simply calls "bcdw boot" with a param of "/ERDC/SETUPLDR.BIN":
set sm11_TXT="ERD Commander"; set sm11_CMD="bcdw boot"; set sm11_PARM="/ERDC/setupldr.bin"

If line 583 which references any selection where you hit enter is incorrect, then anything I call should fail, correct? Did you not notice this too?
Plauderer
QUOTE (Bandito @ Jan 6 2006, 11:52 PM) *
When I look at menu.cds I have the following on lines 582, 583 & 584

if ($lastKey == key[ENTER]);
then call do_sm$>$mm_active$>$sm_active;
then goto End

In your case the line will be resolved to "then call do_sm11;" which calls do_sm11 (at line 605) where it gets resolved to "bcdw boot /ERDC/SETUPLDR.BIN". Thats how it all works.

QUOTE (Bandito @ Jan 6 2006, 11:52 PM) *
If line 583 which references any selection where you hit enter is incorrect, then anything I call should fail, correct? Did you not notice this too?

Ofcourse not! If i would have experienced any troubles i wouldn't have posted it. smile.gif

Have you tried to run my example script? It should work but stop with an error for it won't find any of the mentioned images. But the menu itself works perfect for me. If it still won't work out for you send me your script files and i'll have a look at them.

Good luck
Plauderer
DjEremit
Hi there
i like your menu
but whatever i do , i become the failure
Label not found
command: call line: 583.1 file : menu.cds

i had nothing change in your script ...
the only i do was to create a dir named images and put freedos/freedos.img in there

can u help me? plz
Plauderer
QUOTE (DjEremit @ Feb 2 2006, 05:16 PM) *
can u help me? plz

Ok, i just checked the files i uploaded once more with cdshw.com and found no troubles at all. The thing is i can't help you guys fixing this if i can't reproduce the failure.

Now my "guess" is that you have some troubles in your copy of the config.cds file. The line 583 that is causing the error is called when you hit ENTER on any entry in your menu. It then calls the apropriate label to start the commands. So
CODE
if ($lastKey == key[ENTER]);
then call do_sm$<$mm_active$<$sm_active;

will be parsed as
CODE
if ($lastKey == key[ENTER]);
then call do_sm33;

if you have hit ENTER on the third entry in the third menu.

I hope that helps you understand the cause of it. But as i said: I can't reproduce the failure and therefor can't help you much. sad.gif

Good luck,
Plauderer
Plauderer
I found that my script gets stuck with the latest CD-shell version producing the above error. SO i guess i'll have to check the changes that have been made in CD-Shell before i can fix that. sad.gif
Plauderer
Plauderer
UPDATE:
I have updated the script and it now works with CDshell 2.1.6!

Plauderer
DjEremit
Thx a lot now it works fine smile.gif
pavel
Nice work! Looks very good.

I made my own graphical menu with confirmation dialog, if anybody interested of it, see: http://www.911cd.net/forums//index.php?act...t=0#entry108549

Pavel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.