Jump to content


Photo

Dvd Launch And Ms Dash Launch


  • Please log in to reply
1 reply to this topic

#1 Spawnarius

Spawnarius

    X-S Member

  • Members
  • Pip
  • 93 posts

Posted 27 April 2004 - 08:23 PM

One script was inspired from another DVD launch script but I wanted it simpler.
So if the tray is empty executing the script does nothing.
If it's a game disc, it tells you what game it is and if you want to launch it.
If it's a DVD disc, it tells you that and asks you if you want to launch (don't forget to change the DVD program directory to reflect your own!)
If it's an unknown disc it asks you to manually identify it (audio cd *ms dash*, data cd *boxplorer*, mp3/divx *xbmc* or psx image cd *pcsxbox*)
Change the directories so it will work smile.gif

CODE

:DiskCheckMessage
TrayClose
GOTO DiskCheck
Quit

:DiskCheck
Delay 2
IF $DVDType$ == "Movie Disc" GOTO ShowMovie
IF $DVDType$ == "Game Disc" GOTO ShowGame
IF $DVDType$ == "Unknown" GOTO Unknown
QUIT


:Unknown
BeginDraw UseCurrent
  MessageBox "Select Type of Media:$eol$A - Audio CD$eol$B - PSOne CD$eol$X - Video/MP3 CD$eol$Y - Data CD$eol$BLACK - Abort$eol$WHITE - Load New Disc"
EndDraw
Input
If %_GP_A% == "1" GOTO MSDASH
If %_GP_B% == "1" GOTO PSXBOX
If %_GP_X% == "1" GOTO XBMC
If %_GP_Y% == "1" GOTO Boxplorer
If %_GP_BLACK% == "1" GOTO ABORT
If %_GP_WHITE% == "1" GOTO InsertDisk
QUIT

:MSDASH
EXEC C:\xboxdash.xbe
Quit

:Boxplorer
EXEC C:\apps\boxplorer\default.xbe
Quit

:PSXBOX
EXEC E:\Emulators\PCSX\default.xbe
Quit

:XBMC
EXEC c:\Apps\xbmc-2004-01-15\default.xbe
QUIT

:LaunchCancel
TrayClose
QUIT

:ShowGame
SETFUNC DVDTitle XBETITLE D:\default.xbe
BeginDraw UseCurrent
MessageBox "Tray: %DVDTitle%$eol$Press A to proceed$eol$Press B to abort"
EndDraw
Input
If %_GP_A% == "1" GOTO PlayGame
If %_GP_B% == "1" GOTO ABORT
QUIT

:PlayGame
EXEC D:\DEFAULT.XBE
QUIT

:ShowMovie
MessageBox "Proceed loading DVD movie ?$eol$Press A to proceed$eol$Press B to abort"
Input
If %_GP_A% == "1" GOTO VIEWMOVIE
If %_GP_B% == "1" GOTO ABORT
QUIT

:VIEWMOVIE
EXEC C:\Apps\DVDRegionX2\default.xbe
QUIT

:ABORT
QUIT


Second script just launches MS DASH - If your tray is not open or empty it opens it for you. It's ridiculously simple yet it's an automation if you are not THAT close to your XBOX smile.gif Just launch the script it makes sure MS DASH will not dump you back to your custom dash or launch the game. Combine it with the "close tray" command or the DVD launch script above and it should be helpful...I HOPE! smile.gif

CODE

:DiskCheckMessage
GOTO DiskCheck

:DiskCheck
IF $TrayState$ == "Tray Open" GOTO MSDASH
IF $DVDType$ == "Movie Disc" GOTO InsertDisk
IF $DVDType$ == "Game Disc" GOTO InsertDisk
IF $DVDType$ == "Empty" GOTO MSDASH
IF $DVDType$ == "Unknown" GOTO InsertDisk
QUIT


:InsertDisk
TrayOpen
GOTO MSDASH
Quit

:MSDASH
EXEC C:\XBOXDASH.XBE
QUIT




#2 tekn0

tekn0

    X-S Member

  • Members
  • Pip
  • 124 posts

Posted 27 August 2004 - 01:00 AM

your script is awesome, it is exactly what i was looking for and it works great smile.gif
thanks sooo much because i seem to be having alot of problems with both "launchdvd" and virtual keyboard support build into 0.9n.6 and i cant seem to get ither working for me so your script just solved one of my problems smile.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users