Jump to content


Photo

Auto Launch A Xbe File When Dash Loads?


  • Please log in to reply
11 replies to this topic

#1 BlackWar

BlackWar

    X-S Expert

  • Members
  • PipPipPip
  • 749 posts
  • Xbox Version:v1.6
  • 360 version:v2 (zephyr)

Posted 13 January 2005 - 08:00 PM

How do I set up unleashx to automaticly launch a file apon boot?

lets say I want to straight into a game, or to bring up a message box right off the bat, how do you edit the xml file for this?

#2 Extreme Agony

Extreme Agony

    X-S Member

  • Members
  • Pip
  • 72 posts
  • Location:Toledo, Ohio USA
  • Interests:Movies, TV Shows, XBMC, Computer Programming, Computer Networking
  • Xbox Version:v1.0
  • 360 version:none

Posted 13 January 2005 - 08:37 PM

you can use a 'script' to bring up the message box...

not sure about it being automatic though...

if you really wanted an xbe to launch everytime you loaded your dashboard

then you would be like using that xbe evertime, instead of your dashboard..

so you could just replace the dashboard with the program that you wanted

to load everytime (renameing the xbe file accordingly for your setup)...


#3 neosnightmare

neosnightmare

    X-S X-perience

  • Members
  • PipPip
  • 316 posts
  • Location:FL
  • Xbox Version:v1.5
  • 360 version:none

Posted 13 January 2005 - 09:28 PM

but if the game was to launch and he didnt wanna play it, he can do an IGR. with the renaming for the dash trick, he couldnt do that. but it depends on what he wants to do.

#4 sr_sparky

sr_sparky

    X-S X-perience

  • Members
  • PipPip
  • 442 posts
  • Location:Perth, Western Australia
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 14 January 2005 - 01:19 AM

You can also do something in the settings called 'gamepad/ir shortcuts' that allow you to hold down a particular button at startup and it will automatically load the associated xbe.

Cheers,
Stuart

#5 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 14 January 2005 - 04:49 AM

QUOTE(neosnightmare @ Jan 13 2005, 03:59 PM)
but if the game was to launch and he didnt wanna play it, he can do an IGR. with the renaming for the dash trick, he couldnt do that. but it depends on what he wants to do.

View Post


um, IGR would just reboot...which would just launch UX...which would just launch the game again...


#6 BlackWar

BlackWar

    X-S Expert

  • Members
  • PipPipPip
  • 749 posts
  • Xbox Version:v1.6
  • 360 version:v2 (zephyr)

Posted 14 January 2005 - 08:17 AM

I am making an installer using unleashx as a base. the reason why for the auto-launch is because right before a soft reboot, a new script would replace the config.xml file with the next run of scripts, but I would like it to automaticly run it with no user interaction at all, kinda like what the online updater feature does, it reloads the dash and automaticly continues the update.

Edited by BlackWar, 14 January 2005 - 08:19 AM.


#7 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 14 January 2005 - 07:13 PM

i hope this will be a good enough example for you to build from...
QUOTE
  <List Text="Reboot" Batch="True" AltIcon="f:\dashboards\icons\lock.png">
  <Item Action="Copy" Arg1="config.xml" Arg2="F:\dashboards\unleashx\profiles\admin\config.xml"></Item>
  <Item Action="Copy" Arg1="F:\dashboards\unleashx\profiles\guest\config.xml" Arg2="config.xml"></Item>
  <Item Action="Reboot"></Item>
  </List>



#8 BlackWar

BlackWar

    X-S Expert

  • Members
  • PipPipPip
  • 749 posts
  • Xbox Version:v1.6
  • 360 version:v2 (zephyr)

Posted 14 January 2005 - 08:06 PM

does that script auto-launch though if its the only thing in the menu? or does the "reboot" sellection still needs to be clicked on to launch it?

I understand what the script is doing (and I like the profiles/ect/ layout of it, good thinking!), and the idea of "copying config files over" did come across my mind, I was just hoping that after reboot the script "reboot" (in your example) would auto-launch.....

#9 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 15 January 2005 - 12:17 AM

no, it doesn't autolaunch...but it's as close as you are going to get.

instead of <List Text="Reboot"...
<List Text="Press A to Begin"...or something like that...and make it the only thing in your menu

i doubt that's what you really want, but as said...as close as you can get.


#10 BlackWar

BlackWar

    X-S Expert

  • Members
  • PipPipPip
  • 749 posts
  • Xbox Version:v1.6
  • 360 version:v2 (zephyr)

Posted 16 January 2005 - 08:11 AM

ok, thanks for all of the help, I greatly apperciate it. as you said, that is about as close as I am going to get, but with only one option its kinda hard to scew that up (but then again..... lol)

I do have one final question and then I will let this topic die in peace.

Does unleashx support any type of error checking? (like <ContinueIf arg1="C:\xboxdash.xbe"> or - <if arg1="C:\xboxdash" continue>

well, I think you get the idea. check to see if a file is there, if so, continue, if not, halt or bring up a warning screen. what I am after is some sort of error checking to insure that the needed files are where they are supposed to be, before launching the script that actually does some work (like formatting C:). it would really suck that C: would be formated and then come to the script error-ing out because the restore files have been deleted sad.gif

Edited by BlackWar, 16 January 2005 - 08:15 AM.


#11 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 17 January 2005 - 01:07 AM

not really, but...

<list text="Do some stuff" batch="true">
<list>
<item action="messagebox" arg1="Test">Looking for xboxdash.xbe.../nIf the file is not found,/nyou will see an error message.</item>
<item action="rename" arg1="c:\xboxdash.xbe" arg2="c:\xboxdash.xbe"></item>
<item action="AskUser" arg1="Continue?">Do you want to continue?/nIf you just saw an error message/nyou should NOT continue</item>
...this will get executed if the user answers 'Yes'...
</list>
...the error message itself might cause execution to jump to here (dunno), but if the user answered 'No', this will be executed next. this will get executed even if the user answers 'Yes', but after everything above is executed...unless you have a <item action="reboot"></item> statement up there...
</list>

if you need to do alot of error checking/validation like this, an mxm actionscript would be more suitable. you can put the script in the same dir with the mxm xbe and name it autoexec.xas

#12 BlackWar

BlackWar

    X-S Expert

  • Members
  • PipPipPip
  • 749 posts
  • Xbox Version:v1.6
  • 360 version:v2 (zephyr)

Posted 19 January 2005 - 01:20 AM

cool, thank you for the replies. if unleashx does not work out I may just switch to something else.

thanks all, and peace!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users