xboxscene.org forums

Author Topic: Dvd Launch And Ms Dash Launch  (Read 615 times)

Spawnarius

  • Archived User
  • Newbie
  • *
  • Posts: 26
Dvd Launch And Ms Dash Launch
« on: April 27, 2004, 01:30:00 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 :)

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 :) 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! :)

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


Logged

tekn0

  • Archived User
  • Jr. Member
  • *
  • Posts: 53
Dvd Launch And Ms Dash Launch
« Reply #1 on: August 26, 2004, 06:00:00 PM »

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
Logged