Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Gorotsuki on March 17, 2010, 11:56:39 pm

Title: Batch file help.
Post by: Gorotsuki on March 17, 2010, 11:56:39 pm
I'm trying to make a batch file to use in mala
to run individual ISO's with Ootake.

So far I have this done and it works...

@ECHO OFF

echo.

echo LOADING TURBO GRAFX 16 CD MACROSS 2036...

"C:\Program Files\D-Tools\daemon.exe" -unmount 0 -mount 0,"C:\Documents and Settings\TONY\Desktop\ARCADE\TURBO GRAFX 16\TURBO CD GAMES\MACROSS 2036\macross_2036_jap_silver.cue" -safedisc on -securom on -laserlok on -rmps on

echo.
echo TURBO GRAFX 16 CD MACROSS 2036 LOADED
echo.

C:
cd\
cd "Program Files\Ootake"
Ootake.exe




But after all that Ootake pops up
and still needs the letter C pressed
to begin the game.
So what I need now is a way to
make this batch file wait like 30 seconds
and then press the letter C.

Any help would be great.
Hope I explained this good enough...
Title: Re: Batch file help.
Post by: NOP on March 18, 2010, 09:37:28 am
that can't be done from a batch file.
once Ootake is running, the batch file is no longer running, thus would be unable to press the letter C.  You'll need some other app to run in the background to press the C key.

You could try doing this, but I doubt it will work:

ootake.exe < letterc.txt

then make a tiny text file called "letterc.txt" which just contains the letter C and a carriage return/line feed.  that will jam a C into the program, but it would do it immediately upon loading ootake. 



otherwise, this came up on a search for ootake command line options:

http://forum.arcadecontrols.com/index.php?topic=89009.0 (http://forum.arcadecontrols.com/index.php?topic=89009.0)

good luck!
Title: Re: Batch file help.
Post by: Thenasty on March 18, 2010, 03:52:12 pm
this can be done. I do it with my Dragon's Lair for DOS. I needed to press I belive 3 keys in order the game to proceed.

But this is a DOS app. I dunno if it will work for you. I need to fire up my cab and see the NAMe of the app i use if interested.
Title: Re: Batch file help.
Post by: Gorotsuki on March 18, 2010, 04:32:16 pm
The link NOP placed here
has led me to a functional solution.
I would however, welcome any
and all possible solutions Thenasty.

Thank you all for your help!
Title: Re: Batch file help.
Post by: Thenasty on March 18, 2010, 06:05:17 pm
i'm trying to finf the exact program.
can't find it atm

try this while i look

http://www.softlookup.com/display.asp?id=9788 (http://www.softlookup.com/display.asp?id=9788)



the program i use is called
delaykey v1.1 by chienming Chang 1992
Title: Re: Batch file help.
Post by: Thenasty on March 18, 2010, 06:08:20 pm
another I found while sarching fo rmy exact program (still no luck).

try stuffit

http://reimagery.com/fsfd/keyb.htm (http://reimagery.com/fsfd/keyb.htm)
Title: Re: Batch file help.
Post by: gonzo90017 on March 19, 2010, 01:24:00 pm
It would be alot easier if you were using a frontend like mamewah and Autoit.

But since it looks like only one thing is stopping you. Download sleep.exe (http://www.computerhope.com/dutil.htm) and place in inside  C:\windows.
Code: [Select]
File: DOS Sleep file
Version:
Operating System: MS-DOS 5.x and above and all versions of Windows that support MS-DOS.
Description: Allows users to create programs or batch files that cause their computers to sleep or wait a specific amount of time.
Installation Notes: Copy sleep.exe to location needed. To run file, type sleep and the amount of seconds you wish the computer to sleep for.