Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave305

Pages: [1]
1
General / Re: Starting a batch file.
« on: April 02, 2015, 10:14:11 PM »
WOW, got it to run. I added /k "[ROMFILENAME]" to my cmd arg in AM, but when I exit the game AM it still hangs?. Grrrrrrr.

2
General / Starting a batch file.
« on: April 02, 2015, 09:18:18 PM »
How do I start a batch file in AM?. I have this bat file

Code: [Select]
@echo off

set game=2400ad
G:
cd \
cd "G:\Games\Hyperspin\HyperLaunch\Romfiles\Microsoft MS-DOS\ExoDos\"

:Install
IF EXIST ".\games\%game%\" goto run
cd ".\games\games\%game%\"
call install.bat wn
cd ..
 
:Run
IF NOT EXIST ".\games\%game%\" goto none
start .\dosbox\dosbox.exe -conf .\games\games\%game%\dosbox.conf -noconsole -exit
del stdout.txt
del stderr.txt
if exist .\games\CWSDPMI.swp del .\games\CWSDPMI.swp
:unInstall
cd ".\games\games\%game%\"
call install.bat
cd ..
goto end
:none
::::cls
echo.
echo Game has not been installed
echo.
pause
:end

And when I run it it locks up AM.

My setting:
Exe=cmd.exe
cmd arg="[filename]"
rom path=path to my bat files
Ext=.bat

What I Need is a way to start a new cmd.exe from AM, not in the same cmd.exe window and no start /wait won't work from AM or from a separate batch file. Been on this all day and gettin pissed, pls help. Bat file works great outside AM BTW.

3
Scripting / Re: Clear list box (alpha)
« on: March 31, 2015, 12:29:48 AM »
Thanks
I have Alpha going also, but it don't seem to make a diff the value I set. What I want is to drop a resized picture named bg.png into my layout folder and change the background w/o editing it in gimp. Now going for changing fonts and size. Looking better all the time :).

//
// Attract-Mode Front-End - "Basic" sample layout
//
fe.layout.width=640;
fe.layout.height=480;

fe.add_image( "bg.png", 0, 0 );

local t = fe.add_artwork( "snap", 348, 152, 262, 262 );
t.trigger = Transition.EndNavigation;

t = fe.add_artwork( "marquee", 348, 64, 262, 72 );
t.trigger = Transition.EndNavigation;

local l = fe.add_listbox( 32, 64, 262, 352 );
l.charsize = 12;
l.set_selbg_rgb( 0, 0, 0 );
l.set_sel_rgb( 50, 50, 255 );
l.alpha = 150;
l.sel_style = Style.Bold;

l = fe.add_text( "[DisplayName]", 0, 15, 640, 30 );
l.set_rgb( 255, 255, 255 );
l.style = Style.Bold;

fe.add_image( "bg - Clear.png", 0, 0 );

// Left side:

l = fe.add_text( "[Title]", 30, 424, 320, 16 );
l.set_rgb( 0, 255, 0 );
l.align = Align.Left;

l = fe.add_text( "[Year] [Manufacturer]", 30, 441, 320, 16 );
l.set_rgb( 0, 255, 0 );
l.align = Align.Left;

l = fe.add_text( "[Category]", 30, 458, 320, 16 );
l.set_rgb( 0, 255, 0 );
l.align = Align.Left;

// Right side:

l = fe.add_text( "[ListEntry]/[ListSize]", 320, 424, 290, 16 );
l.set_rgb( 0, 255, 0 );
l.align = Align.Right;

l = fe.add_text( "[FilterName]", 320, 441, 290, 16 );
l.set_rgb( 0, 255, 0 );
l.align = Align.Right;


4
Scripting / Clear list box (alpha)
« on: March 30, 2015, 11:48:09 PM »
Couple of Q's.

I am trying to make a clear list box but don't know the command. I looked at a couple .nut files, but went nuts trying to see how they did it. An example would be great. Below is wrong I know :(.

local l = fe.add_listbox( 32, 64, 262, 352 );
l.charsize = 12;
l.set_selbg_rgb( 0, 0, 0 );
l.set_sel_rgb( 50, 50, 255 );
l.set_alpha = 100
l.sel_style = Style.Bold;

as you can see I am no programer (know a little basic).

How do you manage layers top, bottom, middle placement. Is it by where they are listed in the nut file?.

O.K.I must say I love this FE, simple, fast loading, easy setup. The last FE I felt this way about was 1up years ago. I loved their setup process and display. One more thing is all this Verification really needed to post (just asking).

Pages: [1]