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: Cabinet startup options  (Read 3498 times)

0 Members and 1 Guest are viewing this topic.

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Cabinet startup options
« on: December 29, 2009, 04:50:12 pm »
For years I've been going thru a standard computer startup every time the machine is turned on. After everything loads I would click on Mamewah icon to get going. Is there a way to display an intro video right after XP startup screen while OS is loaded and then automatically start Mamewah? I did a quick search and found a bunch of posts for emulator intro video, did not come across anything for the PC  startup. I suppose I could drop Mamewah into startup  folder to get it started automatically, does not seem like a good solution. Thanks. 

SephYuyX

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 126
  • Last login:November 28, 2013, 11:40:04 am
  • I Am, Who I Am.
Re: Cabinet startup options
« Reply #1 on: December 29, 2009, 05:06:19 pm »
If youre simply wanting to play a movie, and then run a program, that can easily be done via a batch file placed in the startup folder. And there is nothing wrong with using the startup folder.

For example, create a blank .txt and place it in C:\Documents and Settings\USERNAME\Start Menu\Programs\Startup and you can write something like..

START C:\Video.avi
PING 127.0.0.1 -n 20
START C:\Mamewah.exe

Save it, and change the extension to .bat.

It will run when windows boots up. There is no real wait command (you can do google searches for other alternatives) so you use the ping command to specify a wait, so change 20 to however long you want to wait.

With the start command you can also specifiy different commands to run full screen, etc.


If youd rather not use the startup folder, you can create a scheduled task in the control panel and select the 'when my computer starts' option.
« Last Edit: December 29, 2009, 05:09:02 pm by SephYuyX »

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: Cabinet startup options
« Reply #2 on: December 29, 2009, 05:19:21 pm »
This is easy enough. I was hoping to have a video while the rest of the XP stuff is loading. You know, that first 30-40 sec while you are standing in front of the cab waiting.

mr_doles

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:November 13, 2014, 06:53:45 pm
  • nuff said
Re: Cabinet startup options
« Reply #3 on: December 29, 2009, 07:17:41 pm »
There is no real wait command (you can do google searches for other alternatives)

I think that sleep.exe would be good for that.  You can get it here.  Put it in your windows directory then just do sleep 20.

Who says DOS is dead.

Paladin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 541
  • Last login:July 04, 2022, 05:13:19 pm
  • Mmmm llamaburgers!
Re: Cabinet startup options
« Reply #4 on: December 29, 2009, 09:26:47 pm »
There is a /wait parameter for the start command that won't execute the next statement until the first program finishes.

START C:\Video.avi /WAIT
START C:\Mamewah.exe

Would that work, or would it never execute mamewah because the .avi would start media player which wouldn't exit after playing the vid?  Interesting...

Well that didn't work.  I just created a batch file with:
START D:\downloads\08_-_Milk_Cow_Blues.mp3 /WAIT
START D:\games\mame\mala\mala.exe

It started mala right away, before media player had a chance to load and start playing the song.
« Last Edit: December 29, 2009, 09:33:25 pm by Paladin »

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: Cabinet startup options
« Reply #5 on: December 29, 2009, 09:34:57 pm »
You can use the program called Process.exe to kill a task as well.

Start c:\vid.avi
ping 127.0.0.1 -n 31 >nul
process.exe /k <media player name>
Start C:\mamewah.exe

The ping just pings your network card 31 times once a second giving a 30 second delay.

Process.exe is freeware and can be gotten:
http://www.beyondlogic.org/consulting/processutil/processutil.htm
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

mr_doles

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:November 13, 2014, 06:53:45 pm
  • nuff said
Re: Cabinet startup options
« Reply #6 on: December 29, 2009, 10:00:19 pm »
There is a /wait parameter for the start command that won't execute the next statement until the first program finishes.

Would that work, or would it never execute mamewah because the .avi would start media player which wouldn't exit after playing the vid?  Interesting...
It does work but will not go to the next line because media player will not exit.  Syntax would be:
START /WAIT wmplayer.exe "J:\Music\Full CDs\3 Doors Down\3 Doors Down\01 Train.mp3"
START D:\games\mame\mala\mala.exe

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: Cabinet startup options
« Reply #7 on: December 29, 2009, 10:50:11 pm »
this might work as well, what do you think?
http://download.cnet.com/Startup-Delayer/3000-2344_4-10068235.html

still, does not really help with what I wanted to do, i.e. have a start up video while everything else loads in the background

SephYuyX

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 126
  • Last login:November 28, 2013, 11:40:04 am
  • I Am, Who I Am.
Re: Cabinet startup options
« Reply #8 on: December 29, 2009, 11:10:11 pm »
Items in the start up menu should start the second XP is logged in to (or if youre bypassing the login screen, around the same time the start menu/wallpaper start popping up), anything earlier isnt possible, unless one of the boot screen editors allow movies to play instead of a scroll bar, which I doubt.

If youve tried this and the video isnt playing right away, and youre not on a fresh install of an OS, theres probably a lot of processes/drivers/etc initiating and it's taking its sweet time. In which case a fresh OS install or heavy services/msconfig editing should do the trick.
« Last Edit: December 29, 2009, 11:35:01 pm by SephYuyX »

mr_doles

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:November 13, 2014, 06:53:45 pm
  • nuff said
Re: Cabinet startup options
« Reply #9 on: December 30, 2009, 08:03:52 am »
I guess the real question is doesn't Mamewah support a start up video.  I don't use it but doing a quick search I found something here about a Movie Settings in the mamewah.ini file.  So all you need then is a bat file to kick off Mamewah.  Now the other question is can you replace windows shell with MameWah, after a quick search I found this which makes me think you can.  Look here in the wiki about hiding windows.
1) Set Mamewah to run the intro video
2) Replace explorer.exe in the registry with Mamewah

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: Cabinet startup options
« Reply #10 on: December 30, 2009, 09:39:58 am »
Thank you, now we are onto something. Will give it a shot and report back.