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: Mame / Doscab  (Read 1017 times)

0 Members and 1 Guest are viewing this topic.

Alan sinking

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:December 16, 2006, 05:55:54 am
  • I want to build my own arcade controls!
Mame / Doscab
« on: October 05, 2005, 01:24:27 pm »
Hi,
I have installed a computer into an arcade cabinet to run either GAMES or JUKEBOX via the joysticks and buttons
I am running the "choice command" to give me two options when I boot up, both run fine, but to exit the programs I press the esc button, this brings me back to the command prompt.
Is there any way that when I press esc it will automatically go back to the choice menu as when the drive is in the arcade cabinet I have no keyboard so to get the choice menu I have to reboot.
IE:- if command prompt=choice.bat
Thanks in Advance.
Alan.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Mame / Doscab
« Reply #1 on: October 05, 2005, 02:36:12 pm »
Not familiar with the choice command, but  . . .

Assuming you can launch a batch file from the choice command, you might be able to have instead of choice.bat launching

games.exe or jukebox.exe,

have choice.bat launch

games.bat or jukebox.bat and have

games.bat read

games.exe
choice.bat

??

Alternately, when I was using DOS, I ran a simple program called MenuWorks that cost about $10.00 at the time.  I'm sure you could probably find a simple freeware or abandonware DOS program if you needed one.

I might still have that one, PM me if interested.

Should be in the software forum, BTW.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

pmc

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:December 20, 2023, 07:43:02 am
    • website
Re: Mame / Doscab
« Reply #2 on: October 05, 2005, 02:43:36 pm »
Are you sure that's what's happening? I'd think that you are using  START to actually run the external program. If that's the case, control comes back to the command script after the external program exits. Perhaps your BAT file simply ends at that point and dumps you to the C:\ prompt? If so, use GOTO or something like that loop the batch file back to the beginning.

Alternately, use another utility instead of a batch file to accomplish the same goal.

-pmc

Alan sinking

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:December 16, 2006, 05:55:54 am
  • I want to build my own arcade controls!
Re: Mame / Doscab
« Reply #3 on: October 05, 2005, 04:18:56 pm »
Hi,
Thanks pmc
I did'nt do exactly as you said but it gave me food for thought, I wrote another batch file the same as the first with a new name and ended them to start each other, I have just tried it out and it works every time.
thanks again.
Best Regards.
Alan

pmc

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:December 20, 2023, 07:43:02 am
    • website
Re: Mame / Doscab
« Reply #4 on: October 05, 2005, 06:02:52 pm »
Interesting approach. I don't think it's best programming practice, but if it works for you then it's fine! If it were me, I think I'd go for something more elegant than a simple batch script -- maybe a GUI or something.

-pmc

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:September 18, 2024, 01:16:22 pm
  • I dare anything! I am Skeletor!
Re: Mame / Doscab
« Reply #5 on: October 05, 2005, 06:11:22 pm »
I usually say... less is more. Best programming practices for PROGRAMMERS is to do something elegant and scaleable...

for everybody else... not so much.
Raspberry Pi, AttractMode, and Skeletor enthusiast.