xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: Jezz_X on November 05, 2003, 01:19:00 PM

Title: My Simple Disc Launch
Post by: Jezz_X on November 05, 2003, 01:19:00 PM
QUOTE

If $DVDType$ == "Empty" GOTO NoDisc
If $DVDType$ != "Empty" GOTO Check

:NoDisc
    BeginDraw UseCurrent
     MessageBox "No disc in Drive$eol$$eol$Press Any Button to Continue"
    EndDraw
    Input
   QUIT
 
  :Check
    If $DVDType$ == "Game Disc" GOTO LaunchGame
    If $DVDType$ == "Movie Disc" GOTO LaunchMovie
    If $DVDType$ == "Unknown" GOTO UnknownError
 
  :UnknownError
    BeginDraw UseCurrent
     MessageBox "The Disc type is Unknown$eol$And can not be run$eol$$eol$Press Any Button to Continue"
    EndDraw
    Input
   QUIT

  :LaunchMovie
    EXEC c:\xboxdash.xbe
    MessageBox "DVD Video Playing"
   QUIT

  :LaunchGame
    EXEC d:\default.xbe
    MessageBox "Game Starting"
   QUIT
Title: My Simple Disc Launch
Post by: Jezz_X on November 06, 2003, 04:18:00 AM
Seriously if you copy and paste it into notpad and save it as disccheck.xas you have it
Title: My Simple Disc Launch
Post by: yourwishismine on November 06, 2003, 04:55:00 AM
QUOTE (Jezz_X @ Nov 6 2003, 08:18 AM)
Seriously if you copy and paste it into notpad and save it as disccheck.xas you have it

I know.. I was just being reallllllyyyyy lazy....