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 files in mamewah  (Read 1204 times)

0 Members and 1 Guest are viewing this topic.

ideft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:February 11, 2012, 04:06:09 pm
  • "Mister, I suspect you to be a dope fiend"
batch files in mamewah
« on: January 15, 2009, 10:55:09 am »
I want to run some pc games through mamewah using a batch file.  I have a gpwiz so I'll need to run joytokey for some of the pc games. So in my batch file I will call joytokey with the correct config then I will call the game to be run.  My problem is how to kill joytokey once I exit out of the game.  So basically is there a command in mamewah to kill a program??  I know about autoquit, but would it work when I am calling joytokey from the batch file??  Or is there a command line that I could put in a batch file that would kill joytokey and have mamewah call that??

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 files in mamewah
« Reply #1 on: January 15, 2009, 01:33:26 pm »
What Mamewah version are you using?
I'm using 1.62b13a and you don't need to use batch files to launch joytokey.
This is the way it works.
Code: [Select]
### Execution Settings ###
pre_emulator_app_commandlines             C:\videogames\Xpadder\xpadder.exe nes {nowait}{autoquit}
emulator_commandline                      C:\videogames\nes\closemul.exe "[rompath]\[name].[romext]"{nodosbox}{safelaunch}
post_emulator_app_commandlines           
general_app_commandlines             

It works the same with joytokey. Place the whole path+exe+cfg.
Then you add the {nowait} and {autoquit} option so mamewah closes joytokey when you exit the game.

ideft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:February 11, 2012, 04:06:09 pm
  • "Mister, I suspect you to be a dope fiend"
Re: batch files in mamewah
« Reply #2 on: January 15, 2009, 03:00:09 pm »
yes that is what I do for console games and such, but I want it for PC games.  I will need different profiles in joytokey for each pc game(some might be the same) but for the most part they will be different.  I have a emulator category called PC with all my PC games in it.  Since there is no way to tell mamewah which joytokey profile I need loaded I thought just calling a batch file would be the best solution. Then I could just call the batch files from mamewah which would in turn launch joytokey with the games profile and then launch the game.
« Last Edit: January 15, 2009, 06:43:24 pm by ideft »

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 files in mamewah
« Reply #3 on: January 16, 2009, 12:52:36 am »
You can still do it the way I mentioned.

Inside your Mamewah\config\pcgames folder (or whatever you call it)
you should have a folder called "game". If it's not there create it.
Then make a copy of the pcgames.ini file and put it inside your "game" folder.
Now rename that pcgames.ini you just copied to the games folder with the exact name
of your rom or .lnk file in this case.
Now open it and edit it with joytokey's whole path+exe+cfg.
Code: [Select]
### Execution Settings ###
pre_emulator_app_commandlines             C:\videogames\Xpadder\xpadder.exe nes {nowait}{autoquit}

This way you can load a different cfg for each of your pc games.
I  hope you understood it.  :dizzy:

ideft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:February 11, 2012, 04:06:09 pm
  • "Mister, I suspect you to be a dope fiend"
Re: batch files in mamewah
« Reply #4 on: January 16, 2009, 09:53:41 am »
Great! got it working.  Thanks Gonzo.