you can add a new submenu to your menu.xml and add a menu item to that.
As you can see.. you set everything up just like you would a menu menu entry, except you need to change the <exe> tag to an <Action> tag.
of course, you dont have to use a "callfile" function to get a script running, you could put actionscript code between the <actions> tags and run it straight from the menu.xml itself.
I prefer the way listed below, it allows me to update the script without having to reboot.
(you will need to edit the paths to the files on your xbox and you can remove the media and thumbnail tags if you want)
<Submenu>
<Title>Scripts</Title>
<SortField>Title</SortField>
<Media>C:\mxmvideos\scripts.wmv</Media>
<Thumbnail>C:\mxmvideos\folderstuff.png</Thumbnail>
<item>
<title>Test Script</title>
<descr>Use test.xas for testing</descr>
<Action>Callfile c:\mxmscripts\test.xas</Action> <media>C:\mxmvideos\test.wmv</media>
<thumbnail>C:\mxmvideos\hammertime.png</thumbnail>
</item>
</Submenu>
the test.xas file is a simple text document. You can start by creating a new one in notepad and pasting the following code and saving as test.xas then upload to the xbox in the place you reference in the menu item above.
CODE |
BeginDraw UseCurrent MessageBox "Hello $Name$" EndDraw INPUT QUIT
|
You can use system vars, internal scripts, environment vars etc... just browse the scripting forum and mxm docs when you are ready to jump in head first.
hope this helped.