Jump to content

A Little help with CDShell


hyunkeru

Recommended Posts

I've just created a multiboot DVD with serveral versions of windows. Everything is working fine, except one thing is really bothering me. There is a part of the script.

boot:

cls

print "\n"

print "Press Enter to boot from DVD... \n"

getkey 20 boot 0x80

if $lastKey == key[enter]; then goto MainKey

# When no key found...

goto 20 boot 0x80

MainKey:

show image graphics\main.csi

getkey 20 boot 0x80

if $lastKey == key[1]; then goto Pro

if $lastKey == key[2]; then goto Home

if $lastKey == key[3]; then goto 2000

if $lastKey == key[4]; then goto 2003

if $lastKey == key[r]; then reboot

if $lastKey == key[esc]; then boot 0x80

goto menu

1. From the boot section is that possible to change it to any key, instead of the enter key. I really want it to be "any key", other than just the enter key.

2. From the mainkey section, 1,2,3,4,r and esc key are assigned. if I pressed any key else. i will get the label not found error message. Is that possible to tell the program to ignore all the other keys pressed. I don't want anything to happen if the non-assigned key was pressed. I tried read the online help, but I don't really understand most of them. Could someone kindly enough to give me some hints about it. Thanks a lot.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...