xboxscene.org forums

Author Topic: Hd Lock, Format, Static Ip, And Dynamic Ip  (Read 82 times)

-FourDoor-

  • Archived User
  • Full Member
  • *
  • Posts: 225
Hd Lock, Format, Static Ip, And Dynamic Ip
« on: March 11, 2004, 02:20:00 PM »

The IP settings along with the rest of the mxm.xml settings will be handled by the new UI in the next release "o". It can also be done now via action scripts but the new UI will be even better.

The format options you speak of has already been done and can be easily modified to your liking. Check out the actionscripts subforum.

Not sure about the hd lock stuff though...
Logged

Brazilianaire

  • Archived User
  • Newbie
  • *
  • Posts: 16
Hd Lock, Format, Static Ip, And Dynamic Ip
« Reply #1 on: March 11, 2004, 02:34:00 PM »

Sweet, I didn't bother reading the UI developments until after I posted, dur no wonder BJ is still building the input menus.

I've got the format thing set up this way:
<SubMenu>
      <Title>System Utils</Title>
      <Passcode>12345</Passcode>
      <Item>
         <Title>Format F:/G:</Title>
         <Description>Format unused space</Description>
         <Action>
            allowformat 1
            format f:
            format g:
         </Action>
      </Item>

Your saying there's a script out there instead that'll make extra double triple sure that  I want to format my F: or G: drives ?  It would suck if my I wasn't paying attention.
Logged

-FourDoor-

  • Archived User
  • Full Member
  • *
  • Posts: 225
Hd Lock, Format, Static Ip, And Dynamic Ip
« Reply #2 on: March 11, 2004, 02:46:00 PM »

Yeah what you have there is very dangerous... You can add diaglogs to your script up there and make the user answer yes 10x before formattting if you wan to. I'd write up the script for you now, but I don't have my actionscript cheetsheet stuff here with me. I'm sure someone will chime in soon with the proper tags...
Logged

-FourDoor-

  • Archived User
  • Full Member
  • *
  • Posts: 225
Hd Lock, Format, Static Ip, And Dynamic Ip
« Reply #3 on: March 11, 2004, 03:04:00 PM »

Well this is a very very basic actionscript. I haven't written one in a while so hopefully I didn't miss anything... Just springboard off this and include variables and whatnot if you want... Just make sure when you're testing your script that you cange the format commands for dialog boxs.  laugh.gif

CODE

:Start
BeginDraw UseCurrent
  MessageBox "Do you want to format the F Drive?$eol$Press Y to Format $eol$Press any other button to Cancel"
EndDraw

Input
 If %_GP_Y% == "1" GOTO AreYouSure
Goto Cancel

:AreYouSure
BeginDraw UseCurrent
  MessageBox "Are you sure really sure you want to format the F Drive?$eol$Press Y to Format $eol$Press any other button to Cancel"
EndDraw

Input
 If %_GP_Y% == "1" GOTO AreYouReallySure
Goto Cancel

:AreYouReallySure
BeginDraw UseCurrent
  MessageBox "Are you sure really really sure you want to format the F Drive?$eol$Press Y to Format $eol$Press any other button to Cancel"
EndDraw

Input
 If %_GP_Y% == "1" GOTO FormatFDrive
Goto Cancel


:FormatFDrive
Allowformat 1
Format F:
BeginDraw UseCurrent
  MessageBox "Format Completed"
EndDraw

:Cancel
BeginDraw UseCurrent
  MessageBox "Format Cancelled"
EndDraw
DELAY 5
Quit
Logged

Brazilianaire

  • Archived User
  • Newbie
  • *
  • Posts: 16
Hd Lock, Format, Static Ip, And Dynamic Ip
« Reply #4 on: March 12, 2004, 05:45:00 AM »

That is really cool.   Thank you!

I'm going to test it out later today, luckily my F: drive is empty so its safe to test.
Logged