xboxscene.org forums

Pages: 1 ... 3 4 [5] 6 7

Author Topic: Action Menus, Install Discs, And More...  (Read 1310 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #60 on: September 19, 2003, 11:27:00 AM »

Sorry to bug again but I keep getting ideas and whatnot.

in the Readme you put Copy <Path/File/Wildcard> <Path/File>---whats the wildcard?
I understand either you copy a path or just a file but have know clue about the wildcard.

Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #61 on: September 19, 2003, 11:41:00 AM »

QUOTE (flattspott @ Sep 19 2003, 03:17 PM)
On the Color stuff, can we not put the size stuff? Like so,

BeginDraw UseCurrent
Box DarkRed White
EndDraw
Input

Cause how am I spose to know how big the Box needs to be? It seems to me that MXM does a good enough job by itself sizing the boxes to the text.

It's:

BOX <Left> <Top> <Width> <Height> [<Fillcolor> [<BorderColor>]]

The colors are the only optional parts.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #62 on: September 19, 2003, 11:42:00 AM »

QUOTE (flattspott @ Sep 19 2003, 03:27 PM)
Sorry to bug again but I keep getting ideas and whatnot.

in the Readme you put Copy <Path/File/Wildcard> <Path/File>---whats the wildcard?
I understand either you copy a path or just a file but have know clue about the wildcard.

COPY D:\IMAGES\*.jpg E:\Media\Images\

Copies only Jpeg files over... wildcards are "*" or "?" - just like the old DOS commands used to take.

COPY D:\IMAGES\ E:\Media\Images\

Copies the contents of the IMAGES directory over completely, including subdirectories.
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #63 on: September 19, 2003, 12:09:00 PM »

Fantastic.

At this very moment I am working on an installer script. And I was thinking of having the folders on the disc be in a certain way, like APP_01 through APP_xx and so on for the everything else.

Now could I do a FILEEXIST with a wildcard, like IF FILEEXIST D:\APP_01\*.*  ?

The purpose would be to copy to contents of the folder only if there's is files in it. Whereas if there's not, it's ignored. This is cause some people will want to install all apps like older ones and whatnot but some people won't.
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #64 on: September 19, 2003, 12:21:00 PM »

Hey DBZRacer, I just noticed we both signed up a few days a part. Niffty huh?
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #65 on: September 19, 2003, 12:36:00 PM »

Here's another one for you BJ.

I was going over the internal.xml and was wondering...

is there any chance you could add to the autodir section so theres other options then apps and games/hddloader? I was thinking thoughs as well as dashes and emus.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #66 on: September 19, 2003, 12:45:00 PM »

QUOTE (flattspott @ Sep 19 2003, 04:09 PM)
Fantastic.

At this very moment I am working on an installer script. And I was thinking of having the folders on the disc be in a certain way, like APP_01 through APP_xx and so on for the everything else.

Now could I do a FILEEXIST with a wildcard, like IF FILEEXIST D:APP_01*.*  ?

The purpose would be to copy to contents of the folder only if there's is files in it. Whereas if there's not, it's ignored. This is cause some people will want to install all apps like older ones and whatnot but some people won't.

No, FileExists doesn't support wildcards (only Copy).

Perhaps another function is in order to check to see if a path is empty or not?
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #67 on: September 19, 2003, 12:47:00 PM »

QUOTE (DBZRacer @ Sep 19 2003, 04:17 PM)
QUOTE (BenJeremy @ Sep 19 2003, 12:42 PM)
QUOTE (flattspott @ Sep 19 2003, 03:27 PM)
Sorry to bug again but I keep getting ideas and whatnot.

in the Readme you put Copy <Path/File/Wildcard> <Path/File>---whats the wildcard?
I understand either you copy a path or just a file but have know clue about the wildcard.

COPY D:IMAGES*.jpg E:MediaImages

Copies only Jpeg files over... wildcards are "*" or "?" - just like the old DOS commands used to take.

COPY D:IMAGES E:MediaImages

Copies the contents of the IMAGES directory over completely, including subdirectories.

I had a similiar question in regards to the wildcard as well. Actually I have 3.

1. Can you use the copy command to rename the file in its final destination?

as in:

COPY D:IMAGESMXM.JPG F:MEDIAIMAGESMXM2.JPG


Yes.


QUOTE

2. Are wildcards only accepted in the COPY command at this time? I think it would be helpful to have wildcards accepted in the Delete command as well:

DELETE F:MEDIAVIDEOS*.jpg



Not handling them with delete.... I have to think about that a bit.


QUOTE

3. Is there a way to enable the COPY command to search recursively within a folder to search its subfolders? So for example:

COPY F:Media*.JPG F:PICS -S

This would copy all jpegs in the media folder and subfolders into a new folder called pics


Not with wildcards, yet.

Man, you guys just don't let a guy rest....  ohmy.gif
Logged

KAC

  • Archived User
  • Full Member
  • *
  • Posts: 135
Action Menus, Install Discs, And More...
« Reply #68 on: September 19, 2003, 01:15:00 PM »

jester.gif

...now if only my 300GB hard drive got here already, damn UPS guy!!!

Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #69 on: September 19, 2003, 01:48:00 PM »

blink.gif

DBZRacer, as for the installer script. It's coming along.  Right now it is two step thing cause I have to figure out the base foundation for the director structure on the disc.
When I'm done you'll be able to choose one of 4 IP configurations (DHCP, 192.168.0.3, 192.168.1.3, 192.168.100.3). Install MXM as you main dash and any of the others as your secondary dash. There will also be and option to install X Selecter as your Main dash if you choose to use it. It will also have and exploit managent option just incase you feel like using them, (install/remove/restore) You will will have the ability to install individual apps, emus and dashes(as apps) or all all of them at once. Everything will be preconfigured to use the drive you select. All this including any niffty additional scripts I figure out and more is what I'm planning.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #70 on: September 19, 2003, 02:38:00 PM »

I'm thinking of one last set of additions:


File Access:

OPEN <WRITE|READ> <HandleName> <FileName>
WRITELINE <HandleName> <Text>
READLINE <HandleName> <VarName>
STATUS <HandleName> <VarName>
CLOSE <HandleName>


XML Access:

XMLOPEN <HandleName> <FileName>
XMLCLOSE <HandleName>
XMLCREATE <HandleName> <MainNodeName>
XMLSAVE <HandleName> [<FileName>]
XMLSETNODE <HandleName> [<Node> [<Index>]]
XMLSETELEMENT <HandleName> <Element> <Index>
XMLGETELVALUE <HandleName> <VarName> [<Attr>]
XMLSETELVALUE <HandleName> <Text> [<Attr>]
XMLGETATTRVALUE <HandleName> <VarName> <Attr>
XMLSETATTRVALUE <HandleName> <Text> <Attr>

Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #71 on: September 19, 2003, 03:14:00 PM »

Here's another one BJ. Is it possible to use the text color in conjunction with the FileEXISTS...Nevermind don't answer that. I think I try it myself and see what happens. The reason I wanted to know was to see if we could have an evox-like feature where menu entries that have no actual file could be a different color. But like I said I'll try it out myself.
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Action Menus, Install Discs, And More...
« Reply #72 on: September 19, 2003, 04:26:00 PM »

Okay, I don't know if this is problem or what but it seems like result MessageBoxes can only be one line cause thats what's happening even though I am using the $eol$.
Meaning --
If %_GP_A% = "1" GOTO A
:A
MessageBox "Line One$eol$Line Two"
QUIT

But this only shows Line one.

Another thing is I can't get any text of any sort to change color.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Action Menus, Install Discs, And More...
« Reply #73 on: September 19, 2003, 04:37:00 PM »

QUOTE (BenJeremy @ Sep 19 2003, 06:38 PM)
I'm thinking of one last set of additions:


File Access:

OPEN <WRITE|READ> <HandleName> <FileName>
WRITELINE <HandleName> <Text>
READLINE <HandleName> <VarName>
STATUS <HandleName> <VarName>
CLOSE <HandleName>


XML Access:

XMLOPEN <HandleName> <FileName>
XMLCLOSE <HandleName>
XMLCREATE <HandleName> <MainNodeName>
XMLSAVE <HandleName> [<FileName>]
XMLSETNODE <HandleName> [<Node> [<Index>]]
XMLSETELEMENT <HandleName> <Element> <Index>
XMLGETELVALUE <HandleName> <VarName> [<Attr>]
XMLSETELVALUE <HandleName> <Text> [<Attr>]
XMLGETATTRVALUE <HandleName> <VarName> <Attr>
XMLSETATTRVALUE <HandleName> <Text> <Attr>

So is this like sequential files in basic?

And the xml access can let you customize skins. WOW

So now we need a variable that holds the Skinspath, or CurrentSkinPath

Then it's possible to have the user, e.g., switch between newsfeed and song name

A suggestion:
Have a "Scripts" folder, and a "Scripts" submenu

So you can just copy scripts over to the Scripts folder, and run them from the menu.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Action Menus, Install Discs, And More...
« Reply #74 on: September 19, 2003, 04:43:00 PM »

QUOTE (flattspott @ Sep 19 2003, 08:26 PM)
Okay, I don't know if this is problem or what but it seems like result MessageBoxes can only be one line cause thats what's happening even though I am using the $eol$.
Meaning --
If %_GP_A% = "1" GOTO A
:A
MessageBox "Line One$eol$Line Two"
QUIT

But this only shows Line one.

Another thing is I can't get any text of any sort to change color.

It's working fine for me...  just ran a test.

I'm also adding a ton of new functions for string manipulation, as well as "PathEmpty"
Logged
Pages: 1 ... 3 4 [5] 6 7