I have this little snippet of code right at the beginning of my cdshell.ini so prompt me to hit ENTER to boot into my CDSHELL menu.
CODE
boot:
cls
print "\n"
print "Press Enter to boot from CD... \n"
getkey 5 boot 0x80
if $lastKey == key[enter]; then goto Begin
boot 0x80
cls
print "\n"
print "Press Enter to boot from CD... \n"
getkey 5 boot 0x80
if $lastKey == key[enter]; then goto Begin
boot 0x80
.. But what if I wanted the ability to hit ANY key instead of just the ENTER key? Is there a simple way to accomplish this or do I have to list every key on the keyboard like this:
CODE
if $lastKey == key[a]; then goto Begin
if $lastKey == key[b]; then goto Begin
if $lastKey == key[c]; then goto Begin
if $lastKey == key[d]; then goto Begin
...
etc
if $lastKey == key[b]; then goto Begin
if $lastKey == key[c]; then goto Begin
if $lastKey == key[d]; then goto Begin
...
etc