Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Batch file help.  (Read 1756 times)

0 Members and 1 Guest are viewing this topic.

Gorotsuki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 157
  • Last login:March 05, 2011, 10:51:25 pm
Batch file help.
« 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...

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Batch file help.
« Reply #1 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

good luck!

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:July 24, 2025, 06:20:12 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Batch file help.
« Reply #2 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.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Gorotsuki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 157
  • Last login:March 05, 2011, 10:51:25 pm
Re: Batch file help.
« Reply #3 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!

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:July 24, 2025, 06:20:12 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Batch file help.
« Reply #4 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



the program i use is called
delaykey v1.1 by chienming Chang 1992
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:July 24, 2025, 06:20:12 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Batch file help.
« Reply #5 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
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Batch file help.
« Reply #6 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 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.