| QUOTE |
<Action> SET SomeVar $DVDType$ TrayClose Delay 10 If %SomeVar% == "game disc" GOTO Launch If %SomeVar% != "game disc" GOTO begin :begin TrayOpen BeginDraw UseCurrent MessageBox "Please insert A Game to Copy$eol$Press A to Continue$eol$Press B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED Trayclose Delay 10 GOTO Launch :BPRESSED TrayClose QUIT :Launch SETFUNC DVDTitle XBETITLE D:\DEFAULT.XBE SETFUNC DVDSIZE FILESIZE D:\DEFAULT.xbe BeginDraw UseCurrent MessageBox "Press A to Copy %DVDTitle% or B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A2PRESSED BeginDraw UseCurrent MessageBox "DVD is Copying" EndDraw MKDIR F:\games\%DVDTITLE% Copy D:\ F:\games\%DVDTITLE% BeginDraw UseCurrent MessageBox "%DVDTitle% is on Hard drive$eol$Will now reset MenuCache" EndDraw TrayOpen Delay 10 ResetMenuCache BeginDraw UseCurrent MessageBox "Press A to Reboot$eol$Press B to Reboot later" EndDraw Input If %_GP_A% == "1" GOTO A3PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A3PRESSED Trayclose Reboot QUIT </Action> |
| QUOTE |
<Action> SET SomeVar $DVDType$ TrayClose Delay 10 :check If %SomeVar% == "game disc" GOTO Launch If %SomeVar% != "game disc" GOTO begin :begin TrayOpen BeginDraw UseCurrent MessageBox "Please insert A Game$eol$Press A to Continue$eol$Press B to Chancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED trayclose delay 10 goto check :BPRESSED QUIT :Launch SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE BeginDraw UseCurrent MessageBox "Press A to Launch %DVDTitle% or B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A2PRESSED LaunchDVD MessageBox "%DVDTitle% is Starting" QUIT </Action> |
| QUOTE |
<Action> SET YY 100 SET XX 100 :BLAH Input If %_GP_D_LF% == "1" GOTO LF If %_GP_D_UP% == "1" GOTO UP If %_GP_D_DN% == "1" GOTO DN If %_GP_D_RT% == "1" GOTO RT If %_GP_A% == "1" GOTO EXIT Quit :UP SUB YY 5 GOTO DRAWIT :DN ADD YY 5 GOTO DRAWIT :LF SUB XX 5 GOTO DRAWIT :RT ADD XX 5 GOTO DRAWIT :DRAWIT BEGINDRAW BOX %XX% %YY% 10 10 Black White ENDDRAW GOTO BLAH :EXIT QUIT </Action> |
| QUOTE |
<Action> BeginDraw UseCurrent MessageBox "Press A for 100 Percent$eol$Press B for Default" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED SETFANSPEED Manual 100% SETFANSPEED Manual 100% QUIT :BPRESSED SETFANSPEED default SETFANSPEED default QUIT </Action> |
| QUOTE (Habs69M @ Sep 29 2003, 05:11 PM) |
| :XPRESSED BeginDraw UseCurrent MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A4PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A4PRESSED Delay 2 FORMAT F: :YPRESSED BeginDraw UseCurrent MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A5PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A5PRESSED Delay 2 FORMAT G: :BACKPRESSED QUIT |
| CODE |
:begin BeginDraw UseCurrent MessageBox "This will format partitions$eol$Press A to Format C$eol$Press B to Format E$eol$Press X to Format F$eol$Press Y to Format G$eol$Press BACK to Cancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED If %_GP_Y% == "1" GOTO YPRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :APRESSED BeginDraw UseCurrent MessageBox "This will FORMAT C:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A2PRESSED Delay 2 FORMAT C: QUIT :BPRESSED BeginDraw UseCurrent MessageBox "This will FORMAT E:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A3PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A3PRESSED Delay 2 FORMAT E: QUIT :XPRESSED BeginDraw UseCurrent MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A4PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A4PRESSED Delay 2 FORMAT F: QUIT :YPRESSED BeginDraw UseCurrent MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A5PRESSED If %_GP_BACK% == "1" GOTO BACKPRESSED QUIT :A5PRESSED Delay 2 FORMAT G: QUIT :BACKPRESSED QUIT |
| QUOTE (Habs69M @ Sep 29 2003, 05:21 PM) |
| Loll my first script was a remake of your MXMcopy, anyways ..... i know its missing things like i said its not done but you wanted some scripts so i posted my progress |
| QUOTE (vexx22 @ Sep 29 2003, 05:28 PM) |
| You are right geniusalz thats exactliy what i told him. |
| QUOTE (Habs69M @ Sep 29 2003, 05:39 PM) |
| geniusalz do i still need a QUIT after a FORMAT command? since the QUIT is right after my input key press? if not well this script will be ready to test |
| QUOTE (vexx22 @ Sep 29 2003, 07:03 PM) |
| To Habs69M you need to set the Quit because if not the script don´t end after Formating a drive. It will run to the next quit and it can be that there are more than one format command between the label were the command begins and the next quit. If here were more than 10 functional Scripts were posted i create a site. Or i ask BenJeremy to open a topic that can not be edited from anyone. But first we need scripts. I were intrested in an installdisc. I could programm it myself but HABS69M has the formt part programmed and i think it were nice if somebody create another part For the disc. What do you think BenJeremy about a installdisc what should it can? Wich functons are need. Please tell your opinion, to all. |
| QUOTE |
| To Habs69M you need to set the Quit because if not the script don´t end after Formating a drive. It will run to the next quit and it can be that there are more than one format command between the label were the command begins and the next quit. |
| CODE |
BeginDraw UseCurrent EndDraw CallScript _RenderMessageBox %1% ; Wait for input... Input ; Clear old stuff out.... CallScript _ClearDisplay IF $MXMVersion$ !#^ "WIP" GOTO DONE CallScript _DisplayMessageBox "This is a WIP Release$eol$Do not distribute" CallScript _ClearDisplay :DONE CallScript _CheckPrep SETFUNC DrvCPres COND CDrivePresent SETFUNC DrvEPres COND EDrivePresent SETFUNC DrvFPres COND FDrivePresent SETFUNC DrvGPres COND GDrivePresent ALLOWFORMAT 1 CallScript _DisplayMessageBox "System Will Be Prepared" CallScript _RenderMessageBox "Formatting Cache Partitions" FORMAT X: FORMAT Y: FORMAT Z: MOUNT X: MOUNT Y: MOUNT Z: CallScript _ClearDisplay IF %DrvGPres% != 0 GOTO SKIPG CallScript _DisplayMessageBox "Do you have a G: Partition to format?$eol$Press 'Y' to format G:" IF %_GP_Y% != "1" GOTO SKIPG CallScript _PromptFormat G: :SKIPG IF %DrvFPres% != 0 GOTO SKIPF CallScript _PromptFormat F: :SKIPF IF %DrvEPres% != 0 GOTO SKIPE CallScript _PromptFormat E: :SKIPE IF %DrvCPres% != 0 GOTO SKIPC CallScript _PromptFormat C: :SKIPC SETFUNC ODashPresent FileExists C:\xboxdash.xbe IF %ODashPresent% != 0 GOTO ODASHPRESENT CallScript _DisplayMessageBox "Copying MXM to C:" MOUNT D: COPY D:\default.xbe C:\xboxdash.xbe ATTR C:\xboxdash.xbe rw SETFUNC BIOSXMLPres FileExists D:\BIOSMD5.xml IF %BIOSXMLPres% == 0 GOTO ODASHPRESENT COPY D:\BIOSMD5.xml C:\BIOSMD5.xml ATTR C:\BIOSMD5.xml rw :ODASHPRESENT SETFUNC TDataPres FileExists E:\TDATA SETFUNC UDataPres FileExists E:\UDATA IF %TDataPres% == 1 GOTO SKIP1 MKDIR E:\TDATA :SKIP1 IF %UDataPres% == 1 GOTO SKIP2 MKDIR E:\UDATA :SKIP2 SETFUNC TDataGPres FileExists E:\TDATA\00004321 SETFUNC UDataGPres FileExists E:\UDATA\00004321 IF %TDataGPres% == 1 GOTO SKIP3 MKDIR E:\TDATA\00004321 :SKIP3 IF %UDataGPres% == 1 GOTO SKIP4 MKDIR E:\UDATA\00004321 :SKIP4 SETFUNC DrvCPres COND CDrivePresent SETFUNC DrvEPres COND EDrivePresent SETFUNC DrvFPres COND FDrivePresent SETFUNC DrvGPres COND GDrivePresent IF %_ForceRestore% == 1 GOTO PREPSYSTEM IF $DVD_Mode$ != 1 GOTO EPRESENT IF %DrvCPres% == 1 GOTO CPRESENT GOTO PREPSYSTEM :CPRESENT IF %DrvEPres% == 1 GOTO EPRESENT :PREPSYSTEM CallSCript _DisplayMessageBox "This drive appears to be unprepared$eol$Would you like to prepare your$eol$hard drive partitions now?$eol$Press RIGHT-TRIGGER and A to proceed$eol$Any other key" IF %_GP_TRG_RT% != "1" GOTO EPRESENT IF %_GP_A% != "1" GOTO EPRESENT CallScript _PREPDRIVES GOTO CHECKDASH :CHECKDASH CallScript _CheckODash GOTO CHECKRESTORE :CHECKRESTORE CallScript _PerfRestore C CallScript _PerfRestore E CallScript _PerfRestore F 1 CallScript _PerfRestore G 1 CallScript _DisplayMessageBox "Done with default Prepare" CallScript _ClearDisplay :EPRESENT BeginDraw UseCurrent MessageBox "Copying %1% Backup$eol$Please wait" EndDraw COPY %SourceDir% %TargetDrive% CallScript _ClearDisplay BeginDraw UseCurrent MessageBox "Fixing Attributes$eol$Please wait" EndDraw ATTR %TargetDrive% rw CallScript _ClearDisplay GOTO END :DRVNOTPRESENT IF %2% == 1 GOTO END CallScript _DisplayMessageBox "Unable to copy %1%: Backup$eol$Drive not present" :BACKNOTPRESENT IF %2% == 1 GOTO END CallScript _DisplayMessageBox "Unable to copy %1%:$eol$ %SourceDir% not present" :END ; To use, CallScript _PromptFormat F: SETFUNC Drive UPPER %1% SETFUNC Drive LEFT 1 %Drive% IF %Drive% == C GOTO DRIVECHECK IF %Drive% == E GOTO DRIVECHECK IF %Drive% == F GOTO DRIVECHECK IF %Drive% == G GOTO DRIVECHECK GOTO SKIPCHECK :DRIVECHECK SETFUNC DrvPres COND %Drive%DrivePresent IF %DrvPres% != 1 GOTO SKIPCHECK CallScript _DisplayMessageBox "%1% Has Data!$eol$Are you sure you want to format?$eol$Press 'Y' to confirm" IF %_GP_Y% != "1" GOTO CANCELLED :SKIPCHECK CallScript _DisplayMessageBox "You are about to format drive %1%$eol$Are you sure?$eol$Press 'X' to confirm" IF %_GP_X% != "1" GOTO CANCELLED BeginDraw UseCurrent MessageBox "Formatting drive %1%$eol$Please wait" EndDraw ; ALLOWFORMAT 1 FORMAT %1% CallSCript _DisplayMessageBox "Drive %1% Formatted" Mount %1% GOTO END :CANCELLED CallScript _DisplayMessageBox "Drive %1% Format Cancelled" :END |
| QUOTE |
| You guys do know about the internal.xml, right? |
| CODE |
SET SomeVar $DVDType$ TrayClose Delay 10 If %SomeVar% == "game disc" GOTO Launch If %SomeVar% != "game disc" GOTO begin :begin TrayOpen BeginDraw UseCurrent MessageBox "Please insert A Game to Copy$eol$Press A to Continue$eol$Press B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED Trayclose Delay 10 GOTO Launch :BPRESSED TrayClose QUIT :Launch SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE SETFUNC DVDSIZE FILESIZE D:DEFAULT.xbe BeginDraw UseCurrent MessageBox "Press A to Copy %DVDTitle% or B to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A2PRESSED BeginDraw UseCurrent MessageBox "DVD is Copying" EndDraw MKDIR F:\games\%DVDTITLE% Copy D:\ F:games\%DVDTITLE% BeginDraw UseCurrent MessageBox "%DVDTitle% is on Hard drive$eol$Will now reset MenuCache" EndDraw TrayOpen Delay 10 ResetMenuCache BeginDraw UseCurrent MessageBox "Press A to Reboot$eol$Press B to Reboot later" EndDraw Input If %_GP_A% == "1" GOTO A3PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A3PRESSED Trayclose Reboot QUIT |
| QUOTE (camora @ Sep 29 2003, 07:04 PM) |
| umm... the "Copy Single Game DVD" script dont work for me. Lets say i put Gun Valkyrie in the tray, after that the copying process begins but only for 10 seconds. After the reboot the game is not in f:games, but a folder called video_ts. Another problem is that i cant delete this folder in MXM. So i need to switch to evox to delete it. |
| QUOTE (vexx22 @ Sep 29 2003, 07:26 PM) |
| How to integrate an internal script override in my own sript? Like RenderMessageBox %1% to 100% |
| QUOTE (camora @ Sep 29 2003, 08:17 PM) |
| The games i've tried are all original. I dont have any backups to try. Too bad, this would be a usefull script for me... |
| QUOTE (vexx22 @ Sep 29 2003, 08:20 PM) |
| i tested i earlier, with 007 : Nightfire in the space between 007 and : were in the messagebox for xbetitle a ? instaeat a space. and it go next to copy an then after one second to reboot but by me nothing was created i don´t kno what it is its not the script. Can you help BenJeremy? |
| QUOTE |
| Can you see your game disc contents over FTP? |
| QUOTE (camora @ Sep 29 2003, 08:49 PM) |
| Yes, i mean when you just put a game dvd in the box. Maybe i should try another BIOS... |
| CODE |
SETFUNC MXMXMLFileSize FILESIZE c:\mxm.xml SETFUNC NewsfeedONFileSize FILESIZE c:\mxmnewsfeedon.xml SETFUNC NewsfeedOFFFileSize FILESIZE c:\mxmnewsfeedoff.xml IF %MXMXMLFileSize% == %NewsfeedONFileSize% GOTO NewsfeedStatusON IF %MXMXMLFileSize% == %NewsfeedOFFFileSize% GOTO NewsfeedStatusOFF :NewsfeedStatusON SET MXMFileStatus "ON" GOTO Start :NewsfeedStatusOFF SET MXMFileStatus "OFF" GOTO Start :Start BeginDraw UseCurrent MessageBox " - Newsfeed Status: %MXMFileStatus% -$eol$Press Y to Turn Newsfeed ON$eol$Press X to Turn Newsfeed OFF$eol$Press B to Cancel" EndDraw Input If %_GP_Y% == "1" GOTO NewsfeedON If %_GP_X% == "1" GOTO NewsfeedOFF If %_GP_B% == "1" GOTO Cancel Quit :NewsfeedON IF %MXMFileStatus% == "ON" GOTO StatusSame COPY c:\mxmnewsfeedon.xml c:\mxm.xml SET MXMFileStatus "ON" GOTO ExitMessage :NewsfeedOFF IF %MXMFileStatus% == "OFF" GOTO StatusSame COPY c:\mxmnewsfeedoff.xml c:\mxm.xml SET MXMFileStatus "OFF" GOTO ExitMessage :StatusSame BeginDraw UseCurrent MessageBox "Newsfeed Status is already %MXMFileStatus%" EndDraw Delay 1 Goto Start :ExitMessage BeginDraw UseCurrent MessageBox "- Newsfeed Status: %MXMFileStatus% -$eol$ Press A to Accept$eol$ B to Change" EndDraw Input If %_GP_A% == "1" GOTO Reboot If %_GP_B% == "1" GOTO Start :Reboot Reboot Quit :Cancel BeginDraw UseCurrent MessageBox "- Newsfeed Status: %MXMFileStatus% -$eol$ CHANGE ABORTED" EndDraw Delay 2 |
| QUOTE |
<Config> <Main> <SkinsPath>C:\MXMSkins</SkinsPath> <DiscTitle>Media X Menu</DiscTitle> <DiscSubtitle>MXM.xml File</DiscSubtitle> <RemoveDuplicates>True</RemoveDuplicates> <RemoveInvalid>True<RemoveInvalid> </Main> <Preferences> <FTPPriority>highest</FTPPriority> <SynchronizeClock>false</SynchronizeClock> <TimeServerIP>192.168.0.100</TimeServerIP> <Nickname>MXM</Nickname> <AutoLaunchGame>False</AutoLaunchGame> <AutoLaunchMovie>False</AutoLaunchMovie> <AutoLoadMulti>False</AutoLoadMulti> </Preferences> <Network> <UseDHCP>false</UseDHCP> <IP>192.168.0.321</IP> <DefaultGateway>192.168.0.1</DefaultGateway> <SubnetMask>255.255.255.0</SubnetMask> <DNS1>192.168.0.1</DNS1> </Network> <Overrides> </Overrides> <FTPServer> <User> <Name>xbox</Name> <Password>xbox</Password> </User> <AllowAnon>False</AllowAnon> <AnonRoot></AnonRoot> <ServerPort>21</ServerPort> </FTPServer> <Newsfeed name="newsfeed"> <Global>True</Global> <RotateChannels>True</RotateChannels> <URL>http://www.xbox-scen...scene.xml</URL> <UpdateIntervalMin>20</UpdateIntervalMin> <RotateItemInterval>5</RotateItemInterval> </Newsfeed> </Config> |
| QUOTE |
<Config> <Main> <SkinsPath>C:\MXMSkins</SkinsPath> <DiscTitle>Media X Menu</DiscTitle> <DiscSubtitle>MXM.xml File</DiscSubtitle> <RemoveDuplicates>True</RemoveDuplicates> <RemoveInvalid>True<RemoveInvalid> </Main> <Preferences> <FTPPriority>highest</FTPPriority> <SynchronizeClock>false</SynchronizeClock> <TimeServerIP>192.168.0.100</TimeServerIP> <Nickname>MXM</Nickname> <AutoLaunchGame>False</AutoLaunchGame> <AutoLaunchMovie>False</AutoLaunchMovie> <AutoLoadMulti>False</AutoLoadMulti> </Preferences> <Network> <UseDHCP>false</UseDHCP> <IP>192.168.0.321</IP> <DefaultGateway>192.168.0.1</DefaultGateway> <SubnetMask>255.255.255.0</SubnetMask> <DNS1>192.168.0.1</DNS1> </Network> <Overrides> </Overrides> <FTPServer> <User> <Name>xbox</Name> <Password>xbox</Password> </User> <AllowAnon>False</AllowAnon> <AnonRoot></AnonRoot> <ServerPort>21</ServerPort> </FTPServer> </Config> |
| QUOTE (Madgame @ Sep 30 2003, 10:12 AM) |
| I am in the same boat with the copy script not working. Same setup as vexx. Can see the disc through MXM FTP. Do I need to change my bios in order for the script to work? All I get now is a reboot and the empty game folder in my games directory. |
| QUOTE (Madgame @ Sep 30 2003, 10:47 AM) |
| My bios is X2 4976.02. I was trying it with TWPGA2004. |
| QUOTE (vexx22 @ Sep 30 2003, 04:02 PM) |
| I mean i have EvolutionX D6 bios it to long that i put in on the chip, sorry. I think its because the xecuter Bios becasue HABS69M has Xecuter too i mean. And has problems too. |
| QUOTE (DBZRacer @ Sep 30 2003, 08:58 PM) | ||
Good idea... I'll see if I have some time later today to whip it up... |
| QUOTE (onthereal @ Oct 1 2003, 11:34 AM) | ||||
This might work, but I think MXM halts all music and movies while a action script is running. Since Im at work I cant test it.
|
| QUOTE (BenJeremy @ Oct 1 2003, 04:48 PM) | ||||||
Correct, but I will look at some triggers and such to fire ActionScripts. So short answer: not at the moment. Soon. |
| CODE |
;PxHDDLoader Renamer MXM Action Script ;Written by DBZRacer ;Purpose: This MXM action script searches for folders created by PxHDDLoader in your E and F drive and ;prompts you if you want to rename the undescriptive PXGame0000 folder name to the more descriptive XBE Title. :Start BeginDraw UseCurrent MessageBox " - PxHDDLoader Folder Renamer - $eol$Press X to Rename folders in Drive E$eol$Press Y to Rename folders in Drive F$eol$Press B to Cancel" EndDraw Input If %_GP_Y% == "1" GOTO FDriveSelected If %_GP_X% == "1" GOTO EDriveSelected If %_GP_B% == "1" GOTO Cancel Quit :FDriveSelected SETFUNC FolderEmpty PATHEMPTY F:\hddloader IF %FolderEmpty% == "1" GOTO FolderNotFound SET HDDLoaderPath "F:\\hddloader" GOTO DefineSearch :EDriveSelected SETFUNC FolderEmpty PATHEMPTY E:\hddloader IF %FolderEmpty% == "1" GOTO FolderNotFound SET HDDLoaderPath "E:\\hddloader" GOTO DefineSearch :FolderNotFound BeginDraw UseCurrent MessageBox "PxHDDLoader Root Folder Not Found on Drive" EndDraw Delay 2 QUIT :DefineSearch BEGINSEARCH %HDDLoaderPath%\pxgame* GOTO SearchTop :SearchTop IF %search_type% == "dir" GOTO DIRFound IF %search_type% == "file" GOTO NextSearch GOTO DoneSearch :DIRFound SETFUNC GameTitle XBETITLE %HDDLoaderPath%\%search_name%\default.xbe BeginDraw UseCurrent MessageBox "%GameTitle% found in %search_name% folder$eol$Press Y to RENAME %search_name% to %GameTitle%$eol$Press A to Skip to next folder$eol$Press B to Cancel Script" EndDraw Input If %_GP_Y% == "1" GOTO RenameFolder If %_GP_A% == "1" GOTO NextSearch If %_GP_B% == "1" GOTO Cancel Quit :RenameFolder RENAME %HDDLoaderPath%\%search_name% %HDDLoaderPath%\%GameTitle% BeginDraw UseCurrent MessageBox "%search_name% has been renamed to %GameTitle%$eol$Press A to find next match$eol$Press B to Cancel Script" EndDraw Input If %_GP_A% == "1" GOTO NextSearch If %_GP_B% == "1" GOTO Cancel Quit :NextSearch SearchNext GOTO SearchTop :Cancel BeginDraw UseCurrent MessageBox "PHDDLoader Folder Renamer Action Script Cancelled" EndDraw DELAY 5 QUIT :DoneSearch EndSearch BeginDraw UseCurrent MessageBox "PxHDDLoader Folder Renamer$eol$ Completed $eol$ Please REBOOT XBOX NOW $eol$ for changes to take effect" EndDraw DELAY 10 ResetMenuCache QUIT |
| QUOTE (vexx22 @ Oct 1 2003, 04:32 PM) |
| Cool Script DBZRacer, i have a question because your %search_name%string%, i know what it is and what it do, but by me it has no function, how old is your wip version? |
| QUOTE (vexx22 @ Oct 1 2003, 08:24 PM) |
| Can somebody explain me this string? "IF#" i treid to programm an automatic script that should go through the whole ABC to search folder who begin with thi letters. But i need more, or automatic change the T* to the letter U* after going to IF string ABC_* and the * change through the ABC. Set useit "P*" GOTO los :ABC_T Set useit "T*" GOTO los :los BEGINSEARCH d:data%useit% IF %search_type% == "dir" GOTO run IF %search_type% != "dir" GOTO ABC_T |
| CODE |
IF# %arg1% < %arg2% GOTO SOMETHING |
| QUOTE (sandman2869 @ Oct 3 2003, 10:17 AM) |
| I have been playing with these scripts for the past couple of days, trying to understand the logic behind it all. This is what I have so far: You can add an actionscript to your menu.xml as an item in the menu and then run it from there. |
| QUOTE |
This is what I need help understanding: What are the .xas files for and how do I use them? |
| QUOTE |
What is context and why would I want to use an actionscript in context mode? |
| QUOTE |
Is there a way to do looping? Like if I want to rename all of the PxGame* directories to the xbetitle, is there a way for me to do into f: hddloader and check to see how many directories there are, thus renaming the directories as I go? |
| CODE |
SET Index 0 :TOPOFLOOP ADD Index 1 IF# %Index% < 10 GOTO TOPOFLOOP |
| QUOTE |
I have read the readme txt file as well as all of the clinic and am not getting it. I know I'm not the brightest apple in the bunch here, but I can't be that retarded, can I? Please help. |
| QUOTE |
PS. I have added the current scripts from this thread as menu items in my menu.xml and am loving them, and am currently working on a couple (very very simple) of my own, but would like to expand more on these capabilities. Thanks in advance |
| QUOTE (sandman2869 @ Oct 3 2003, 10:49 AM) | ||
| BJ, Plain and simple, you rock! Thank you sir...
so if I understand you correctly, I would need something like this in my menu.xml: <item> <Title> Test </Title> <Action> CallFile blahblah.xas </Action> </Item> Correct? |
| QUOTE |
You mentioned my mxm.xml file, but the only actionscript I had in there was my autoexec, should I be adding them to the mxm file instead? Thanks again for the quick reply. |
| QUOTE (sandman2869 @ Oct 3 2003, 07:17 AM) |
| Is there a way to do looping? Like if I want to rename all of the PxGame* directories to the xbetitle, is there a way for me to do into f: hddloader and check to see how many directories there are, thus renaming the directories as I go? |
| CODE |
SET SomeVar $DVDType$ TrayClose Delay 20 :check If %SomeVar% == "game disc" GOTO Launch If %SomeVar% != "game disc" GOTO Begin :begin trayopen BeginDraw UseCurrent MessageBox "Please insert a game.$eol$$eol$Press 'A' to Continue$eol$Press 'B' to Cancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED trayclose delay 20 goto check :BPRESSED QUIT :Launch SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE BeginDraw UseCurrent MessageBox "%DVDTITLE%$eol$$eol$Press 'A' to Launch Game$eol$Press 'B' to Cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A2PRESSED LaunchDVD MessageBox "%DVDTitle%$eol$$eol$Loading game..." QUIT |
| CODE |
IF |
| QUOTE |
<Action> BeginDraw UseCurrent MessageBox "FanSpeed by Taiger, inspired by vexx22 $eol$ $eol$Press A to add 20 Percent to FanSpeed $eol$Press X for default $eol$Press B to Quit" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :APRESSED SETFANSPEED Manual 20% SETFANSPEED Manual 20% Input If %_GP_A% == "1" GOTO ABPRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :ABPRESSED SETFANSPEED Manual 30% SETFANSPEED Manual 30% Input If %_GP_A% == "1" GOTO ACPRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :ACPRESSED SETFANSPEED Manual 40% SETFANSPEED Manual 40% Input If %_GP_A% == "1" GOTO ADPRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :ADPRESSED SETFANSPEED Manual 50% SETFANSPEED Manual 50% Input If %_GP_A% == "1" GOTO XPRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :XPRESSED SETFANSPEED default SETFANSPEED default Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED If %_GP_X% == "1" GOTO XPRESSED QUIT :BPRESSED QUIT </Action> |
| QUOTE (Taiger @ Oct 23 2003, 08:07 PM) | ||
gadgetstring ??, do you have any examples on that one |
| QUOTE |
;#################################3 ;# Fan Speed Adjuster ;# Author: KoldFuzion - Original concept by vexx22, aditional motivation by Taiger ;# Filename: FanSpeed.xas ;# Date: 10-23-2003 ;# Purpose: allows user to set fan speed manually between 10-50% ;################################## SET NEWFANSPEED $FanSpeed$ GOTO START :START BeginDraw UseCurrent MessageBox "FanSpeed is currently : $FanSpeed$$eol$$eol$A to Increase speed 1$eol$X to Increase speed 5$eol$B to Decrease speed 1$eol$Y to Decrease speed 5$eol$BLACK TO QUIT" EndDraw Input If %_GP_A% == "1" GOTO INCREASEONE If %_GP_X% == "1" GOTO INCREASEFIVE If %_GP_B% == "1" GOTO DECREASEONE If %_GP_Y% == "1" GOTO DECREASEFIVE If %_GP_BLACK% == "1" GOTO QUIT GOTO START :INCREASEONE ADD NEWFANSPEED 1 GOTO DOFAN :INCREASEFIVE ADD NEWFANSPEED 5 GOTO DOFAN :DECREASEONE SUB NEWFANSPEED 1 GOTO DOFAN :DECREASEFIVE SUB NEWFANSPEED 5 GOTO DOFAN :DOFAN IF# %NEWFANSPEED% <= 9 GOTO TOOLOW IF# %NEWFANSPEED% >= 51 GOTO TOOHIGH SETFANSPEED Manual %NEWFANSPEED% GOTO START :TOOLOW SETFANSPEED Manual 10 SET NEWFANSPEED 10 BeginDraw UseCurrent MessageBox "WARNING!!$eol$Setting FanSpeed BELOW 10 is not permitted$eol$Doing so may damage your xbox.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOLOW :TOOHIGH SETFANSPEED Manual 50 SET NEWFANSPEED 50 BeginDraw UseCurrent MessageBox "Unable to set FanSpeed ABOVE 50.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOHIGH :QUIT QUIT |
| CODE |
:DiskCheck BeginDraw UseCurrent MessageBox "Checking DVD Status. Please Wait..." EndDraw TrayClose DELAY 10 IF $DVDType$ != "Movie Disc" GOTO InsertDisk IF $DVDType$ == "Movie Disc" GOTO LaunchDisk QUIT :InsertDisk BeginDraw UseCurrent MessageBox "Please Insert DVD Movie$eol$Press A TO Continue$eol$Press B To Cancel" EndDraw TrayOpen Input If %_GP_A% == "1" GOTO DiskCheck If %_GP_B% == "1" GOTO LaunchCancel Quit :LaunchCancel TrayClose BeginDraw UseCurrent MessageBox "DVD Movie Launch Cancelled" EndDraw Delay 5 QUIT :LaunchDisk EXEC c:xboxdash.xbe MessageBox "DVD Video Playing" QUIT |
| CODE |
;# ;#GameDir should be set to the root directory where you keep your games. Please note the double back-slashes. ;# SET GameDir "F:\\games\\" SET SomeVar $DVDType$ :CheckDrive BeginDraw UseCurrent MessageBox "Checking disk..." EndDraw Delay 10 If %SomeVar% == "game disc" GOTO Launch If %SomeVar% != "game disc" GOTO begin :begin TrayOpen BeginDraw UseCurrent MessageBox "Please insert game disk:$eol$Press A to continue$eol$Press B to cancel" EndDraw Input If %_GP_A% == "1" GOTO APRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :APRESSED Trayclose GOTO CheckDrive :BPRESSED TrayClose QUIT :Launch SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE SETFUNC DVDSIZE FILESIZE D: SETFUNC strLen LENGTH $driveFfree$ SUB strLen 21 SETFUNC freeFdrive MID 3 %strLen% $driveFfree$ SETFUNC freeFdrive REPLACE "," "" %freeFdrive% DIV DVDSIZE 1000000 If# %freeFdrive% <= %DVDSIZE% GOTO NOROOM BeginDraw UseCurrent MessageBox "%DVDTitle%$eol$Press A to copy$eol$Press B to cancel" EndDraw Input If %_GP_A% == "1" GOTO A2PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A2PRESSED SET oldTitle %DVDTitle% SETFUNC DVDTitle REPLACE ":" "-" %DVDTitle% SETFUNC DVDTitle REPLACE " " "" %DVDTitle% SET newDir %DVDTitle% BeginDraw UseCurrent MessageBox "Copying...$eol$%oldTitle%$eol$to$eol$%GameDir%%newDir%" EndDraw MKDIR %GameDir%%newDir% Copy D: %GameDir%%newDir% BeginDraw UseCurrent MessageBox "Copy finished.$eol$Reseting MenuCache..." EndDraw ResetMenuCache Delay 5 BeginDraw UseCurrent MessageBox "Press A to reboot$eol$Press B to reboot later" EndDraw Input If %_GP_A% == "1" GOTO A3PRESSED If %_GP_B% == "1" GOTO BPRESSED QUIT :A3PRESSED Trayopen Reboot QUIT :NOROOM BeginDraw UseCurrent MessageBox "Insufficient disk space$eol$Exiting..." EndDraw Delay 5 QUIT |
| CODE |
SET NEWFANSPEED $FanSpeed$ GOTO START :START BeginDraw UseCurrent MessageBox "FanSpeed is currently : $FanSpeed$$eol$$eol$A to Increase speed 1$eol$X to Increase speed 5$eol$B to Decrease speed 1$eol$Y to Decrease speed 5$eol$BLACK TO QUIT" EndDraw Input If %_GP_A% == "1" GOTO INCREASEONE If %_GP_X% == "1" GOTO INCREASEFIVE If %_GP_B% == "1" GOTO DECREASEONE If %_GP_Y% == "1" GOTO DECREASEFIVE If %_GP_BLACK% == "1" GOTO QUIT GOTO START :INCREASEONE ADD NEWFANSPEED 1 GOTO DOFAN :INCREASEFIVE ADD NEWFANSPEED 5 GOTO DOFAN :DECREASEONE SUB NEWFANSPEED 1 GOTO DOFAN :DECREASEFIVE SUB NEWFANSPEED 5 GOTO DOFAN :DOFAN IF# %NEWFANSPEED% <= 9 GOTO TOOLOW IF# %NEWFANSPEED% >= 51 GOTO TOOHIGH SETFANSPEED Manual %NEWFANSPEED% GOTO START :TOOLOW SETFANSPEED Manual 10 SET NEWFANSPEED 10 BeginDraw UseCurrent MessageBox "WARNING!!$eol$Setting FanSpeed BELOW 10 is not permitted$eol$Doing so may damage your xbox.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOLOW :TOOHIGH SETFANSPEED Manual 50 SET NEWFANSPEED 50 BeginDraw UseCurrent MessageBox "Unable to set FanSpeed ABOVE 50.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOHIGH :QUIT QUIT |
| CODE |
| QUOTE (Kthulu @ Nov 10 2003, 09:54 AM) |
| this isn't really an actionscript question, but it does arise from seeing this fanspeed script so much. you can set the fanspeed to any setting from 10 to 50. what number in there does it run at by default? might there be any consequences to running the fanspeed way faster than default all the time?...consequences like increased power consumption (least of worries) or fan burning out in it's youth |
| CODE |
| SET NEWFANSPEED $FanSpeed$ GOTO START :START BeginDraw UseCurrent MessageBox "FanSpeed is currently : $FanSpeed$$eol$$eol$A to Increase speed 1$eol$X to Increase speed 5$eol$B to Decrease speed 1$eol$Y to Decrease speed 5$eol$START to Maximize speed$eol$BACK to Minimize speed$eol$BLACK TO QUIT" EndDraw Input If %_GP_A% == "1" GOTO INCREASEONE If %_GP_X% == "1" GOTO INCREASEFIVE If %_GP_B% == "1" GOTO DECREASEONE If %_GP_Y% == "1" GOTO DECREASEFIVE If %_GP_START% == "1" GOTO MAXIMIZE If %_GP_BACK% == "1" GOTO MINIMIZE If %_GP_BLACK% == "1" GOTO QUIT GOTO START :INCREASEONE ADD NEWFANSPEED 1 GOTO DOFAN :INCREASEFIVE ADD NEWFANSPEED 5 GOTO DOFAN :DECREASEONE SUB NEWFANSPEED 1 GOTO DOFAN :DECREASEFIVE SUB NEWFANSPEED 5 GOTO DOFAN :MAXIMIZE SETFANSPEED Manual 50 SETFANSPEED Manual 50 SET NEWFANSPEED 50 BeginDraw UseCurrent MessageBox "FanSpeed is at it's maximum" EndDraw GOTO START :MINIMIZE SETFANSPEED Manual 10 SETFANSPEED Manual 10 SET NEWFANSPEED 10 BeginDraw UseCurrent MessageBox "FanSpeed is at it's minimum" EndDraw GOTO START :DOFAN IF# %NEWFANSPEED% <= 9 GOTO TOOLOW IF# %NEWFANSPEED% >= 51 GOTO TOOHIGH SETFANSPEED Manual %NEWFANSPEED% GOTO START :TOOLOW SETFANSPEED Manual 10 SET NEWFANSPEED 10 BeginDraw UseCurrent MessageBox "WARNING!!$eol$Setting FanSpeed BELOW 10 is not permitted$eol$Doing so may damage your xbox.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOLOW :TOOHIGH SETFANSPEED Manual 50 SET NEWFANSPEED 50 BeginDraw UseCurrent MessageBox "Unable to set FanSpeed ABOVE 50.$eol$$eol$Press A to Continue" EndDraw Input If %_GP_A% == "1" GOTO START If %_GP_BLACK% == "1" GOTO QUIT GOTO TOOHIGH :QUIT QUIT |
| QUOTE |
| awesome, glad you are finally seeing results. Did you use the callfile method in your menu to get it working? |
| QUOTE |
| I believe the default speed is 20. |
| QUOTE |
| Since you actually have to mod your bios to keep that setting, it will always reset to 10 every time you reboot your machine. |
| CODE |
;NAME: virtualKB ;PURPOSE: To provide an efficient method of getting user-input strings ;RETURNS: _kbInput - contains text entered by user ;USAGE: ;Callfile c:mxmscriptsvirtualKB.xas "Please enter some text:" ;BeginDraw UseCurrent ; MessageBox "You entered: %_kbInput%" ;EndDraw ; ;When the keyboard is displayed: ;X-button - moves cursor back ;Y-button - moves cursor forward ;A-button - adds selected character to string ;B-button - changes case ;CLEAR - sets string to "" ;BACK - see X-button ;FORWARD - see Y-button ;ENTER - sets _kbInput = input string and quits ;--------------------------------------------------------------------- SET X 125 SET Y 365 SET W 25 SET H 25 SET capLock 1 SET keyboardInput "" SET leftString "" SET rightString "" SET aChar "" SET cursor 0 SET row1a "1 2 3 A B C D E F G CLEAR" SET row2a "4 5 6 H I J K L M N BACK" SET row3a "7 8 9 O P Q R S T U FORWARD" SET row4a "0 - . V W X Y Z _ ENTER" SET row1b "1 2 3 a b c d e f g CLEAR" SET row2b "4 5 6 h i j k l m n BACK" SET row3b "7 8 9 o p q r s t u FORWARD" SET row4b "0 - . v w x y z _ ENTER" SET lowerCase "123abcdefg456hijklmn789opqrstu0-.vwxyz_ " SET upperCase "123ABCDEFG456HIJKLMN789OPQRSTU0-.VWXYZ_ " :PAINT BeginDraw UseCurrent If %1% == "" GOTO SKIPMSGBOX MessageBox %1% :SKIPMSGBOX BOX 10 330 670 200 BOX 10 330 670 25 BOX %X% %Y% %W% %H% If# %capLock% == 1 GOTO DRAWKEYBOARDCAP TEXT 30 330 0 "%leftstring%>%rightString%" YELLOW TEXT 130 365 0 "%row1b%" WHITE TEXT 130 390 0 "%row2b%" WHITE TEXT 130 415 0 "%row3b%" WHITE TEXT 130 440 0 "%row4b%" WHITE GOTO DRAWKBEND :DRAWKEYBOARDCAP TEXT 30 330 0 "%leftstring%>%rightString%" YELLOW TEXT 130 365 0 "%row1a%" WHITE TEXT 130 390 0 "%row2a%" WHITE TEXT 130 415 0 "%row3a%" WHITE TEXT 130 440 0 "%row4a%" WHITE :DRAWKBEND EndDraw INPUT If %_GP_D_LF% == "1" GOTO LF If %_GP_D_UP% == "1" GOTO UP If %_GP_D_DN% == "1" GOTO DN If %_GP_D_RT% == "1" GOTO RT If %_GP_X% == "1" GOTO BACK If %_GP_Y% == "1" GOTO FORWARD If %_GP_A% == "1" GOTO GETKEY If %_GP_B% == "1" GOTO SETCAP If %_GP_BACK% == "1" GOTO END If %_GP_START% == "1" GOTO RETURN GOTO PAINT :END QUIT ------------------------------ :SETCAP If# %capLock% == 1 GOTO CAPOFF SET capLock 1 GOTO PAINT ------------------------------ :CAPOFF SET capLock 0 GOTO PAINT ------------------------------ :UP If# %Y% == 365 GOTO PAINT SUB Y 25 GOTO PAINT ------------------------------ :DN If# %Y% == 440 GOTO PAINT ADD Y 25 GOTO PAINT ------------------------------ :LF SET W 25 If# %X% == 125 GOTO PAINT SUB X 25 GOTO PAINT ------------------------------ :RT SET W 125 If# %X% == 375 GOTO PAINT SET W 25 ADD X 25 GOTO PAINT ------------------------------ :GETKEY SETFUNC strLen LENGTH %keyboardInput% SET charX %X% SET charY %Y% SUB charX 125 DIV charX 25 SUB charY 365 DIV charY 25 If# %charX% == 10 GOTO GETSPECKEY If# %strLen% > 46 GOTO PAINT MULT charY 10 ADD charX %charY% SETFUNC aChar MID %charX% 1 %upperCase% If# %capLock% == 1 GOTO SETKBINPUT SETFUNC aChar MID %charX% 1 %lowerCase% :SETKBINPUT If# %cursor% == 0 GOTO GETRIGHTSTRING SETFUNC leftString LEFT %cursor% %keyboardInput% :GETRIGHTSTRING SET nextCursor %cursor% ADD nextCursor 1 SETFUNC strLen LENGTH %keyboardInput% If# %strLen% == %cursor% GOTO GETCHAR SUB strLen %nextCursor% SETFUNC rightString MID %nextCursor% %strLen% %keyboardInput% :GETCHAR SET leftString %leftString%%aChar% SET keyboardInput %leftString%%rightString% ADD cursor 1 GOTO PAINT ------------------------------ :GETSPECKEY If# %charY% == 0 GOTO CLEAR If# %charY% == 1 GOTO BACK If# %charY% == 2 GOTO FORWARD If# %charY% == 3 GOTO RETURN GOTO PAINT ----------------------------- :BACK If# %cursor% == 0 GOTO PAINT SUB cursor 1 SET rightString %aChar%%rightString% SETFUNC aChar RIGHT 2 %leftString% SETFUNC aChar LEFT 1 %aChar% SETFUNC leftString LEFT %cursor% %leftString% GOTO PAINT ----------------------------- :FORWARD SETFUNC strLen LENGTH %keyboardInput% If# %cursor% == %strLen% GOTO PAINT ADD cursor 1 SETFUNC aChar LEFT 1 %rightString% SET leftString %leftString%%aChar% SETFUNC strLen LENGTH %keyboardInput% SUB strLen %cursor% SETFUNC rightString RIGHT %strLen% %keyboardInput% GOTO PAINT ----------------------------- :CLEAR SET _kbInput "" SET keyboardInput "" SET keyboardInput "" SET leftString "" SET rightString "" SET aChar "" SET cursor 0 GOTO PAINT QUIT ----------------------------- :RETURN SETFUNC _kbInput TRIM %keyboardInput% SET keyboardInput "" SET leftString "" SET rightString "" SET aChar "" SET cursor 0 GOTO END |
| QUOTE (Kthulu @ Nov 12 2003, 04:38 PM) |
| i hope it works great and everyone enjoys it. it probably still needs some tweaking tho. displaying the 'keyboard' part on the screen is a little hap-hazard because the default system font is not a fixed-width font. i know it would be difficult to incorporate a feature into MXM Actionscripting that would allow one to change the font used for messageboxes and such, so i have this idea... EDIT: I just realized that the board may have altered the spacing in my 'keyboard display', so everything might not line up on your screens if you copy/paste from here. i'm looking for a place to upload... when MXM uses a system-default font, is it getting from some font file on the hard-drive? if so, maybe some scripting could be written that temporarily swaps this font file out with one that contains a fixed-width font... |
| QUOTE (DBZRacer @ Nov 13 2003, 10:32 AM) |
| Sweet job on the keyboard Kthulu... Looks like awesome work. KF, I still havent had a chance to work on the newuser script/alphabet soup. Might be good anyways since now theres a virtual keyboard here now that will make it very simple for someone to start up MXM now and config just about all the mxm.xml settings they want without ever opening up an xml doc. |