PDA

View Full Version : Is this possible?



JaysenDaniel
08-20-2002, 01:59 AM
Hi!
First off I'd like to say AMS 4.0 is AMAZING, I LOVE IT!!... Now on with the subject....

OK... I am making an arcade cabinet to play all my Playstation games on and I have decided to use AMS 4.0 to make the frontend for it that will launch the games. I will be using an emulator to run the actual games and all the games will be stored on the hard drive locally as .iso images.

I have been able to make a text object and use it as a button to launch the emulator along with the command line arguments to load the .iso file.
Right now I have about 40 Playstation games and I could just make the frontend by creating 40 different text objects (10 per page) to launch the 40 different games and order the games alphabetically, but let's say that one weekend I'm at the flea market and pick-up 10 more games and now I want to add them to the cabinet and to the frontend, I would now have to move everything around if I wanted to keep everything organized alphabetically and it would make it a huge task just to add more games to it....

So my question is this....

Can I supply the properties of a text object through the use of a .ini file?

What I would like is 10 text objects per page and if each text object could call their properties from a .ini file then it would just be a matter of copying and pasting text and moving it around and adding in the new games within the .ini file and just add another page of text objects.

Here is the properties that I have used to make 1 text object launch the emulator and load the .iso file:


=====Text Object Properties=====

------ Settings Tab ------
Object Text Message:
A Bugs Life

------ Attributes Tab ------
Name:
Game One Launch Button

------ Actions Tab ------

File to execute (path and filename):
C:\Documents and Settings\master\My Documents\Emus\Console\PSX\epsxe152\ePSXe.exe

Command line arguments:
-nogui -loadiso A_Bugs_Life.bin

Working directory:
C:\Documents and Settings\master\My Documents\Emus\Console\PSX\epsxe152

Any and all help with this would be appreciated...Thanks in advance 8-)

Jaysen

Derek
08-20-2002, 06:37 AM
Hi - Just a thought here ... why not build 1 ListBox and have all the games listed in there ... so much easier and quicker than so many Text objects. You could then have the ListBox load a file at runtime with all the games listed and on DoubleClick ... play the game.
This would also allow you to edit the text file and the changes would be made in AMS without even opening it!

zeroseven
08-20-2002, 10:34 AM
one helluva smart man you are Derek /ubbthreads/images/icons/wink.gif

Derek
08-20-2002, 11:55 AM
lol /ubbthreads/images/icons/laugh.gif

[serious face]
<font color=purple>Yes! I try hard not to be.</font color=purple>
[/serious face]

zeroseven
08-20-2002, 12:26 PM
not as smart as I
*tilts head with pride*

JaysenDaniel
08-20-2002, 06:38 PM
Thanks for your response Derek...

About the text objects that I was asking about...is it possible to do with them what I asked in my initial post??

I will try your idea about the list box...just that it will not be as esthetically pleasing to do it with a list box, with the text object I would have the freedom of laying them out how I want (eg. they could be laid out in a half circular pattern to follow the edge of a graphic...etc.)

Also ... how do I go about getting a listbox to "load a file at runtime with all the games listed"? which function is that..If you could possibly create a small example and email it to me at: jdidora@hotmail.com

BUT... I would much more prefer to do it the way I described in my first post if it is possible, since I would only have to layout 1 page and just copy it for the rest (with minor changes to the identifiers of the text object buttons), it would be worth the extra effort to have the freedom of laying it out how I want instead of being trapped by a generic list box..

Thanks again for any and all help 8-)

Derek
08-20-2002, 08:53 PM
Hi Jaysen

I guess if it "would be worth the extra effort" it's not such a "huge task to add more games" /ubbthreads/images/icons/smile.gif

If you really want to do it with Text Objects, you're prob not gonna find it any quicker by importing some kind of text file. In fact it's prob more of a PITA to set it up like that since the text Object only requires one action to run the game.

I only suggested the list box coz i thought yu were looking for an 'easy way out'

Off the top of my head, the Actions required with the Text Object/Txt file approach will need something like this:

Text Object 1:
TextFile.GetLine
String.GetDelimited 0 ;;
String.GetDelimited 1 ::
File.Execute %NewString%

As apposed to (without the txt file):

Text Object 1:
File.Execute ... etc

That may need some tweeking since there's no SelectedIndex. I guess that would be with a single line text file format too:

Item1::command1;;Item 2::command 2;; .. etc

unless you change CR's for ;; delimiters.

- so .. all in all yur prob better off just using single line actions for the Text Objects

(FYI: email is not usually sent. we prefer to post all question/replies here so everyone can benefit from the info /ubbthreads/images/icons/smile.gif)

JaysenDaniel
08-21-2002, 12:49 AM
Thank you once again Derek!

I have tried for a couple of hours to try to get this to work:

"Text Object 1:
TextFile.GetLine
String.GetDelimited 0 ;;
String.GetDelimited 1 ::
File.Execute %NewString%"

And I am completely lost, I honestly haven't even been able to figure out where to start 8-(

I would benefit so much if I could just see a working example...pretty please would you be able to post a working sample here... If you would, you could even just make it a text object that calls it's properties from a text file and the function could be to load a supplied image file into paint...so the image file would be like the .iso image and paint would be like the emulator..... (maybe make it 2 different buttons each loading a different supplied image file, so I can see what the unique identifiers are)

I hope this makes sense...

P.S.: If it would be easier for you to create this sample with the listbox, that would be great too!!

Thank you Derek!! 8-)

Derek
08-21-2002, 04:32 AM
Attached is a sample page ... just import the file to see how it works

You will need to create a txt file (C:\sample.txt) and paste this into it (check the address of IE to make sure it's correct for yurs):

Game 1::C:\Program Files\Internet Explorer\iexplore.exe -k www.indigorose.com;;Game 2::C:\Program Files\Internet Explorer\iexplore.exe -k www.microsoft.com;;

OR just change the address and -k arg for the one you wanna use ... ie:

C:\Documents and Settings\master\My Documents\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso A_Bugs_Life.bin

10277-sample.pg4 (http://www.indigorose.com/ubbthreads/uploads/10277-sample.pg4)

unknown user
08-21-2002, 09:00 AM
You're a good egg D.

Lorne
08-21-2002, 09:18 AM
You know, you can change the text in a Text Object at run time. /ubbthreads/images/icons/laugh.gif

Just set the text on each button from your list. Add a couple more buttons to scroll the list (might be a neat effect to do it one at a time, or you could just make them act like "next page" buttons).

Let the "Text Object - Set Text" action be your friend...

JaysenDaniel
08-22-2002, 05:27 AM
Derek....do you work for IndigoRose?? If you do not, then I want to recommend you to be hired!! Thank you SO much for your help thus far! 8-)

I spent all evening experimenting with the sample that you made and again I want to say thank you...I think it would have taken me a long time to figure out how to configure those "string" functions to do what you did. Now after tinkering with your sample I found a few things I need help with....these are:

1 - Specify "Object text message" in the text file. "Lorne - Let the "Text Object - Set Text" action be your friend..." - I was able to figure out how to do this from the "Page properties - On Initialize"..but I was not able to figure out how to do this from the text file, can it be specified in the text file?

2 - Specify "Working directory" in the text file (The emulator needs this to be defined or it will not initialize properly and fails to load the .iso image, I manually added the address to the "File.Execute (""%NewString%","",Continue)" Command action properties "Working directory" field to get it to work, can it be specified in the text file?

3 - Can there be a line break to seperate each "Games" line in the text file...(when I tried adding a line break, it failed to read anything after the first line break I inserted) eg.:

Game 1::C:\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso A_Bugs_Life.bin;;<Line break here>
Game 2::C:\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso Bubble_Bobble_2.bin;;<Line break here>
Game 3::C:\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso C-12-Final_Resistance.bin;;<Line break here>

4 - And now the icing on the cake....

Is it possible to specify for each game in the text file an image to appear in an image box when you mouseover the games title (I was thinking of scanning the jewel case inlays and have them appear as the images, this would be SO cool!). I think for this I would have to have a default image load on initialize and then when you mouseover a games title it would then read from the text file which image to load next and that image would remain until you mouseover another games title, when you go to another page then a default image would then again load.

If these can be done and if you could again supply a sample I will forever be in your debt!

This ends my wish list. ;-)

Thank you for all your help Derek and Lorne!! 8-)

Jaysen

Derek
08-22-2002, 07:51 AM
....do you work for IndigoRose??

Just waiting for the offer!

OK .. so yu want more ... here we go:

1 - Yep .. no prob
paste this into Project settings.On Initialize

<IR_ACTIONS_LIST>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Read the text file and change all the CR to ;;</Comment>
</Action>
<Action name="Read">
<Type>31</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%TextFile%</Variable>
<FileName>C:\sample.txt</FileName>
</Action>
<Action name="Replace">
<Type>60</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%NewFile%</Variable>
<SearchIn>%TextFile%</SearchIn>
<SearchFor>#ASC_CR##ASC_LF#</SearchFor>
<ReplaceWith>;;</ReplaceWith>
<CaseSensitive>1</CaseSensitive>
</Action>
</IR_ACTIONS_LIST>

... and this into Page Properties.On Show


<IR_ACTIONS_LIST>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Break down the string to get the name for Game 0</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Index0%</Variable>
<Source>%NewFile%</Source>
<Delimiter>;;</Delimiter>
<ItemIndex>0</ItemIndex>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game0%</Variable>
<Source>%Index0%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>0</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Then set the text for Game 1</Comment>
</Action>
<Action name="Set Text">
<Type>75</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<ObjectName>Text1</ObjectName>
<Text>%Game0%</Text>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Break down the string to get the name for Game 1</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Index1%</Variable>
<Source>%NewFile%</Source>
<Delimiter>;;</Delimiter>
<ItemIndex>1</ItemIndex>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game1%</Variable>
<Source>%Index1%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>0</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Then set the text for Game 1</Comment>
</Action>
<Action name="Set Text">
<Type>75</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<ObjectName>Text2</ObjectName>
<Text>%Game1%</Text>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Break down the string to get the name for Game 2</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Index2%</Variable>
<Source>%NewFile%</Source>
<Delimiter>;;</Delimiter>
<ItemIndex>2</ItemIndex>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game2%</Variable>
<Source>%Index2%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>0</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Then set the text for Game 2</Comment>
</Action>
<Action name="Set Text">
<Type>75</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<ObjectName>Text3</ObjectName>
<Text>%Game2%</Text>
</Action>
</IR_ACTIONS_LIST>


2 - Yep .. like anything yu wanna specify, its just a matter of putting in enough GetDelimitedString Actions to find the one you want ... you could have loads of em if yu needed that many!
You have to add extra info into the line, so instead of:
<font color=purple>Game 1::C:\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso A_Bugs_Life.bin;;</font color=purple>
it's gonna read:
<font color=blue>Game 1::C:\Emus\Console\PSX\epsxe152\ePSXe.exe -nogui -loadiso A_Bugs_Life.bin::C:\Emus\Console\PSX\epsxe152::</font color=blue>
Notice the ;; at the end of the line has been changed to ::

3 - I thought this would be the next question Sure it can! Its alread taken care of in part 1 ... that'll work now. Adjust yur text file so it's on lines like you want it

4 - hahaha!! /ubbthreads/images/icons/wink.gif um ... i dont think so. I'll see what i can come up with but i'm not expecting it. Lest one of the IR guys can step in and tell us for sure!


Now; paste this into Text Object 1 on your page:
<IR_ACTIONS_LIST>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the file to execute</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game0Run%</Variable>
<Source>%Index0%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>1</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the working Directory</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game0Dir%</Variable>
<Source>%Index0%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>2</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Execute the file using the info from the above variables</Comment>
</Action>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%Game0Run%</FileName>
<CommandLine/>
<WorkingDir>%Game0Dir%</WorkingDir>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>

This into Text Object 2:
<IR_ACTIONS_LIST>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the file to execute</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game1Run%</Variable>
<Source>%Index1%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>1</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the working Directory</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game1Dir%</Variable>
<Source>%Index1%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>2</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Execute the file using the info from the above variables</Comment>
</Action>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%Game1Run%</FileName>
<CommandLine/>
<WorkingDir>%Game1Dir%</WorkingDir>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>


and this into text Object 3:
<IR_ACTIONS_LIST>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the file to execute</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game2Run%</Variable>
<Source>%Index2%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>1</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Get the text that specifies the working Directory</Comment>
</Action>
<Action name="Get Delimited String">
<Type>64</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Game2Dir%</Variable>
<Source>%Index2%</Source>
<Delimiter>::</Delimiter>
<ItemIndex>2</ItemIndex>
</Action>
<Action name="Comment">
<Type>202</Type>
<Function>2</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Comment>Execute the file using the info from the above variables</Comment>
</Action>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%Game2Run%</FileName>
<CommandLine/>
<WorkingDir>%Game2Dir%</WorkingDir>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>

If yu need more ... SHOUT! /ubbthreads/images/icons/smile.gif

<<oops! I nearly forgot you gotta add this to the Project Settings:

In the Configuration Tab, click Default Build
under the 'Constants' pane, click 'Add New' button
The first entry will be:
Name #ASC_CR#
Value 13
Click OK and add a second entry
Name #ASC_LF#
Value 10

Thats it .. OK all that and all should be good to go /ubbthreads/images/icons/smile.gif>>

Lorne
08-22-2002, 08:47 AM
Don't write off #4:




Is it possible to specify for each game in the text file an image to appear in an image box when you mouseover the games title (I was thinking of scanning the jewel case inlays and have them appear as the images, this would be SO cool!).



You can do this pretty easily by using a Web Browser Object to hold the image. Just use a "Web Browser Object - Navigate To" action to load the image in the Web Browser Object. (You can even display animated GIFs that way.)

The only caveat is that the IE control will display scroll bars if the image is too larger than the object's bounding box...but you can get around that pretty easily by writing a simple HTML file for each image, to either force an image size (so IE resizes it) or disable the scroll bars with some javascript or CSS.

Derek
08-22-2002, 09:00 AM
Yeah browser object had flashed thru my mind when i was looking across the park watching the pigeons doing their thing! But i hadn't stopped it to think about the scrollbar and image size issue (thats how quick it flashed!) ... so Jaysen ... i'll let yu play with the browser object and see what yu can do with it

JaysenDaniel
08-23-2002, 02:30 AM
Derek....YOU ROCK!!!

Thanks alot bud for all the help ;-)

and thank you too Lorne... *Cough*giveDerekajob*Cough*

I have figured out how to get the browser object to work, except I couldn't get it to be specified in the text file..I have added it as a "on mouseover" to the text object properties.... And for no scroll bars, all it takes is simple html...here is all you need to have no scroll bars:

<body scroll=no>

Derek could you show me how to add the on mouseover - browser object - navigate to, to be configured from the text file if possible? Also would it be possible to have the browser object remain hidden until an initial mouseover occurs?

Thanks again guys... 8-)

I'm gonna really go to work on building this thing this weekend and with all the help I've gotten, it's gonna make it so much fun to do now... ;-)

P.S.:
Derek... to increase the size of the post box, click on the link "My Home" at the top, then in the "Main Configuration" section click the "edit" link under "Display preferences, number of shown threads, languages, colors..." then just change the "TextArea columns?" and "TextArea rows?" fields to make the post box size bigger...

Hope this helps...it's the least I could do 8-)

Jaysen

Derek
08-23-2002, 06:18 AM
Thanx for the tip about the post box - it was actually more of a joke (i needed a page! /ubbthreads/images/icons/wink.gif) but thanx anyway /ubbthreads/images/icons/smile.gif ... i'll probably be asking for a bigger monitor next /ubbthreads/images/icons/shocked.gif

"<body scroll=no>" ... that'll work (thanx /ubbthreads/images/icons/smile.gif I didnt know that one. You should post that tip on the Computer Chat board too coz i'll bet there's a few that don't know that and would welcome it).

You may also wanna add to the Body TAG:

OnContextMenu=return false (when going back to this I figured yu wouldnt need it anyway if yur gonna HIDE it on MouseLeave)

that'll stop a menu popping up if yu right click on the Browser Object.
Something else we've been doing too is placing thin TextBox Objects around the Browser Object to hide the border of it. That way it looks like part of the page.

To hide the Browser Object until you need it, add to the top of Page Properties.On Show:

Page.HideObject("WebBrowser1")

Then; under your Text Objects you need to add to the MouseOver event

Page.ShowObject("WebBrowser1")
WebBrowserObject("WebBrowser1").NavigateTo("%URL%")

and add a Page.HideObject under the MouseLeave That sorts out the showing and hiding etc.

Yur only task now is to add the address yu want it to navigate to in the txt file. I think yu should be able to work that out yurself ... basically you just need to put the address in there and add another GetDelimitedString to find it and give it a %URL% variable

Have fun

(for some reason i got an error with the mouseOver saying it could not locate the browser object [because it was hidden] yet it showed under the error msg anyway! thats odd, it was as if AMS was trying to run the two Actions together instead of following the order of them ... which logically, should never produce that error if is is shown before navigation. I added a Application.Sleep(.1) to get around the error and it worked fine. Disabled the sleep Action and it worked OK after that! /ubbthreads/images/icons/shocked.gif)

Lorne
08-23-2002, 09:00 AM
Couple pointers:

- you could just create an HTML file for each image, and load the HTML files instead...that way, you can control how each one is displayed, turning off the scroll bars, overriding the image size with WIDTH and HEIGHT attributes to fit inside the Web Browser Object, etc. (of course, if you have access to all the images you can just resize them to the size you want, too /ubbthreads/images/icons/wink.gif)

- if you want it to be dynamic, you could create a single "template" HTML file, with some easily search-and-replaceable string acting as a placeholder for the image filename...then read that template in, replace the text with the image filename, and write it out to the HTML file that your web browser is loaded to. (Or you could do all the conversions during On Initialize so it wouldn't have to happen each time.)

Or you could set it up so the IMG tag stretches across two lines, so you can just create a copy of the template file and insert the attribute with a "Text File - Insert Line" action. Sort of like:

Before:

<IMG
WIDTH=200 HEIGHT=300>

After:

<IMG
SRC="mypic.jpg"
WIDTH=200 HEIGHT=300>

Or you could even create the HTML file completely from scratch with AutoPlay actions...

Derek
08-23-2002, 09:10 AM
"- you could just create an HTML file for each image, and load the HTML files instead"

(wispers quietly: "I assumed that what he was doing" ... maybe I didnt read it properly)

JaysenDaniel
08-23-2002, 01:29 PM
"(wispers quietly: "I assumed that what he was doing" ... maybe I didnt read it properly)"

yup...that is what I'm doing /ubbthreads/images/icons/smile.gif

Thanks for all the help guys!!!

I'll keep you guys updated with how it's going this weekend...

Catch ya later /ubbthreads/images/icons/wink.gif

Jaysen