xboxscene.org forums

Pages: 1 [2] 3 4 ... 9

Author Topic: Share Scripts For Others  (Read 1608 times)

X30n

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Share Scripts For Others
« Reply #15 on: September 29, 2003, 01:06:00 PM »

I wish I had some scripts to share.  What are some good uses of scripts and  I will give a shot at it.
Logged

vexx22

  • Archived User
  • Newbie
  • *
  • Posts: 42
Share Scripts For Others
« Reply #16 on: September 29, 2003, 01:18:00 PM »

try programming any kind of a script, it just for learning. let your fantasy play. :D I startet programming Friday morning, it was the first time i used ActionScript. But after reading some topics and the readme i made my first own script. And it getting more. You can that too. Try it.
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #17 on: September 29, 2003, 01:11:00 PM »

Oh well this is not done but here is my FormatPatitions.xas

I didnt bother adding these = \  but i guess you can figure out where they go biggrin.gif

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

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

: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
Logged

vexx22

  • Archived User
  • Newbie
  • *
  • Posts: 42
Share Scripts For Others
« Reply #18 on: September 29, 2003, 01:21:00 PM »

Cool Big thanks to HABS69M for his first script. Have you tested it? Because i see something missing.
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #19 on: September 29, 2003, 01:21:00 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  biggrin.gif  and for now yes it works will probably finish it tonight, kind a cool what you can do with this , wonder what else could be nice as a XAS like maybe flash bios? BJ can you answer this? can i make a XAS script to flash a bios on a mod chip?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Share Scripts For Others
« Reply #20 on: September 29, 2003, 01:26:00 PM »

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

You need to QUIT after every format "block"
Otherwise it will keep executing the rest of the code after the "format" command
I was making the same mistake...

With that bug fixed:
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
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #21 on: September 29, 2003, 01:39:00 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 biggrin.gif



: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
BeginDraw UseCurrent
MessageBox "Formating Partition C:$eol$Please Wait"
EndDraw
Delay 2
FORMAT C:
BeginDraw UseCurrent
MessageBox "Done Formating C:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
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
BeginDraw UseCurrent
MessageBox "Formating Partition E:$eol$Please Wait"
EndDraw
Delay 2
FORMAT E:
BeginDraw UseCurrent
MessageBox "Done Formating E:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
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
BeginDraw UseCurrent
MessageBox "Formating Partition F:$eol$Please Wait"
EndDraw
Delay 2
FORMAT F:
BeginDraw UseCurrent
MessageBox "Done Formating F:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
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
BeginDraw UseCurrent
MessageBox "Formating Partition G:$eol$Please Wait"
EndDraw
Delay 2
FORMAT G:
BeginDraw UseCurrent
MessageBox "Done Formating G:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
QUIT

:A6PRESSED
Reboot

:BACKPRESSED
QUIT
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Share Scripts For Others
« Reply #22 on: September 29, 2003, 01:51:00 PM »

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  biggrin.gif  and for now yes it works will probably finish it tonight, kind a cool what you can do with this , wonder what else could be nice as a XAS like maybe flash bios? BJ can you answer this? can i make a XAS script to flash a bios on a mod chip?

Working on that flash code yet....

The nice thing about ActionScript, is it temporarily frees me from having to get the UI in place before doing some neater things.


MediaPatch command is coming tonight, as soon as I get out of work here and get home. The code is written, it does a media flag and the 8 byte media check code patch.

Also coming is directory entry searching:

   BEGINSEARCH <WildCardPath>
   SEARCHITEM <VarName>   (Load VarName with current file/pathname)
   SEARCHSIZE <VarName>   (Load VarName with current file size)
   SEARCHTYPE <VarName>   (Load VarName with current type for entry - "file" or "dir")
   SEARCHNEXT
   ENDSEARCH

Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Share Scripts For Others
« Reply #23 on: September 29, 2003, 02:01:00 PM »

QUOTE (vexx22 @ Sep 29 2003, 05:28 PM)
You are right geniusalz thats exactliy what i told him. biggrin.gif

Well, let's just say u type faster than me biggrin.gif
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Share Scripts For Others
« Reply #24 on: September 29, 2003, 02:05:00 PM »

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 biggrin.gif

Well, you need to keep the QUIT after the inputs, in case the user presses something other than A or B.  Looks good right now
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #25 on: September 29, 2003, 02:06:00 PM »

Hehe i wanted to test it but got this message:

ATTENTION
Partition Formatting must be enable by user
Access System Menu to change

How do i change this ?  smile.gif  please so i can test my script
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Share Scripts For Others
« Reply #26 on: September 29, 2003, 02:11:00 PM »

It's a security feature in case kids dont format  ohmy.gif

To bypass it temporarily, you need to go to the system meny (press Y) , and look for "allow format" or something there.

To bypass it everytime you run the script (not recommended), you need to put
ALLOWFORMAT 1
In your actionscript
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #27 on: September 29, 2003, 02:14:00 PM »

Hmm cool thks bud, you helped alot  smile.gif  will test this ,without the QUIT after the FORMAT command and see what happens,

Thks again  smile.gif
Logged

Habs69M

  • Archived User
  • Full Member
  • *
  • Posts: 190
Share Scripts For Others
« Reply #28 on: September 29, 2003, 02:40:00 PM »

Ok the script in my previous post works but i am wondering if for the syntax i have to add the QUIT after the FORMAT command or not?

And damn it formats fast hehe i formated my E in like 4 seconds lolll
Logged

vexx22

  • Archived User
  • Newbie
  • *
  • Posts: 42
Share Scripts For Others
« Reply #29 on: September 29, 2003, 03:03:00 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.
Logged
Pages: 1 [2] 3 4 ... 9