Jump to content

Time Format and GUI


JohnSteven

Recommended Posts

Hi all,

Got my multi-boot DVD going and all works well with the exception of the time display on the graphical menu.

My time shows up as:

9:$timeminutepm $month1

My date shows up as:

5-2004>-

Other than that all works well.

BTW, are there instructions on creating some of those nice looking boot menus with CDSHELL? If so, could someone post some links???

Thanks in advance......

Link to comment
Share on other sites


C'mon folks. Is there anybody out there that can tell me what's wrong with this cdshell.ini file??? The date and time seem to be screwed up and I've tried fiddling with it for a while but am running up against a brick wall. Here is the first 39 lines of the file:

boot:
cls
print "\n"
print "Press Enter to boot from DVD... \n"
getkey 5 boot 0x80
if $lastKey == key[enter]; then goto time
# When no key found...
goto boot

# Function to display time of day
time:
set hour = $timeHour
set ampm = "am"
if $timeHour > 12; then set hour = $timeHour - 12
if $timeHour > 12; then set ampm = "pm"
set time = "$hour:$timeMinute$ampm"

# Function to display date
date:
set month = "n/a"
if $dateMonth == 1; then set month = "Jan."
if $dateMonth == 2; then set month = "Feb."
if $dateMonth == 3; then set month = "Mar."
if $dateMonth == 4; then set month = "Apr."
if $dateMonth == 5; then set month = "May."
if $dateMonth == 6; then set month = "Jun."
if $dateMonth == 7; then set month = "Jul."
if $dateMonth == 8; then set month = "Aug."
if $dateMonth == 9; then set month = "Sep."
if $dateMonth == 10; then set month = "Oct."
if $dateMonth == 11; then set month = "Nov."
if $dateMonth == 12; then set month = "Dec."
set date = "$month$dateDay,$dateYear"

# Printing the Interface
menu:
set textColor= color[grey on black]
set boldColor= color[cyan on black]
cls

Any help would be appreciated. This may seem simple to some, but to a newb it's frustrating.........

BTW, everything else works great, just the time/date screwup.......

Link to comment
Share on other sites

Hi Whampoom,

Thanks for the reply. I'll give that a try this evening and post back. I also came up with a solution by just putting a space between each format. I can't seem to find any tutorials on writing this type of script. Can you or someone else here point me towards some???

Thanks again......

JohnSteven

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...