Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: gonzo90017 on May 20, 2006, 09:17:17 pm

Title: Can Mamewah launch joy2key?? (SOLVED)
Post by: gonzo90017 on May 20, 2006, 09:17:17 pm
I wan't to do this because i'm using gamepads via usb. I can put both mamewah and joytokey in the startup folder. But I want to run mamewah as shell. So joy2key won't work this way. If I make it launch with a game i'll have more than one running in the background when I change games right?
Title: Re: Can Mamewah launch joy2key??
Post by: liquid8 on May 20, 2006, 09:56:18 pm
in the new beta of mamewah, there is an option to run an app at startup, i don't think it was in 1.61, but all you need to do is create a batch file, that will run joy2key first, then run mamewah.

Something like:

Code: [Select]
start /wait c:\emu\joy2key\joy2key.exe
c:\emu\mamewah\mamewah.exe

Then just run the batch file from your startup.
Title: Re: Can Mamewah launch joy2key??
Post by: mccoy178 on May 20, 2006, 10:03:22 pm
Mamewah 1.62 will run a preapp command.  Here is my .ini for vpinball:

### vpinball.ini (mamewah v1.62) ###

emulator_title                            vpinball

### List Generation Settings ###
rom_path                                  c:\pinball\Tables
rom_extension                             vpt
dat_file                                 
nms_file                                 
catver_ini_file                           
list_generation_method                    rom_folder

### Execution Settings ###
pre_emulator_app_commandlines             c:\joytokey\joytokey.exe pinball{nowait}{autoquit};                                                                                                                                                                                                                                                                           c:\pinball\Pinballlcd\vpinball.lcd
emulator_commandline                      c:\pinball\tables\vp-launch4.exe [name]{nodosbox}{nosafelaunch}{cursor}
post_emulator_app_commandlines            c:\Mamewah1.62\exit.lcd
general_app_commandlines                 

### Artwork Locations ###
artwork_image_paths                       c:\pinball\pinmame\snap;[emuexepath]\titles;[emuexepath]\marquee;[emuexepath]\control;[emuexepath]\cabinet;[emuexepath]\flyers;[emuexepath]\boxart;[emuexepath]\cart;[emuexepath]\art9;[emuexepath]\art10
movie_preview_path                       
movie_artwork_no                          1

### Screen-Saver Settings ###
enable_music_in_screensaver               1
select_random_game                        0
saver_type                                movie
movie_path                                C:\Mamewah1.62\ssmovie
movie_fullscreen                          1
quit_delay                                30
saver_commandline                         C:\Mamewah 1.62\ssmovie\mspacman.scr

### Additional Settings ###
music_path                               
lcd_display_file_path                     c:\pinball\Pinballlcd

### Settings used by MAMEWAH ###
current_list                              2
Title: Re: Can Mamewah launch joy2key??
Post by: gonzo90017 on May 20, 2006, 10:07:07 pm
Didn't want to upgrade but I guess that means I have no choice.
Title: Re: Can Mamewah launch joy2key??
Post by: liquid8 on May 21, 2006, 12:07:40 am
what's wrong with using the .bat file, that will run it for you when you start mamewah, which is all you need.
Title: Re: Can Mamewah launch joy2key??
Post by: mccoy178 on May 21, 2006, 12:19:11 am
Because if you are using joy2key for other emulators.  This method can call individual setups depending upon what emulator you need.  There is nothing wrong with what you did, I was just answering his question as to wether or not mamewah could start joy2key.
Title: Re: Can Mamewah launch joy2key??
Post by: liquid8 on May 21, 2006, 12:51:37 am
no, that's fine, i guess it all depends on how you have it setup. If he needs to use seperate settings for the emulators, then yeah, he will probably want to upgrade.

If you don't want to upgrade, you have 2 options:

1) configure all your emulators to use the same keys, and just start joy2key prior to mamewah launching

or

2) use .bat files for the actual emulators, instead of launching the emulator executable, launch a bat file that will start joy2key with the emulator configuration, and then start the emulator. I think with joy2key, it does not start a seperate application.

I double checked it and it doesn't start a seperate joytokey application, so you can run it over and over when launching your emulators.
Title: Re: Can Mamewah launch joy2key??
Post by: gonzo90017 on May 21, 2006, 08:10:29 pm
Thanks for your help liquid8 but i'm trying to run mamewah as shell. In other words replace it for Explorer.exe and a bat file won't work.
Title: Re: Can Mamewah launch joy2key??
Post by: liquid8 on May 21, 2006, 10:49:18 pm
... and? A .bat file works just as well as a shell. It's fine if you want to upgrade, there's some nice new features... I am just giving alternatives :)
Title: Re: Can Mamewah launch joy2key??
Post by: darthbane2k on May 22, 2006, 04:33:32 am
Batchrun is your friend.

http://www.outertech.com/index.php?_charisma_page=product&id=1
Title: Re: Can Mamewah launch joy2key??
Post by: jelwell on May 22, 2006, 04:48:31 pm
I wan't to do this because i'm using gamepads via usb. I can put both mamewah and joytokey in the startup folder. But I want to run mamewah as shell. So joy2key won't work this way. If I make it launch with a game i'll have more than one running in the background when I change games right?

I just added a section to the wiki that might address your problem:
http://wiki.arcadecontrols.com/wiki/Hiding_Windows#Launching_Programs.2FUtilities_in_the_background

also see:
http://wiki.arcadecontrols.com/wiki/PC_Games#Utilities
The link in this second article demonstrates setting up XYNTService and PPJoy together. I believe the solution to your problem is similar, except that you want to go from joy2key instead of key2joy.
Joseph Elwell.
Title: Re: Can Mamewah launch joy2key??
Post by: gonzo90017 on May 22, 2006, 05:06:17 pm
I decided to try a bat before upgrading. Replaced explorer with a
bat: start /wait c:\emu\joy2key\joy2key.exe
c:\emu\mamewah\mamewah.exe
Mamewah starts only after closing joy2key. Tried using batchrun. It creates  a .brs instead of .bat It doesn't work as a shell. At startup explorer is still loaded. It ignores the shell path placed in regedit. It only works if I run  it from explorer or put it in the startup folder which can be done manually and defeats the whole purpose of not loading explorer. I will have a look at the wiki jelwell. Thanks!
Title: Re: Can Mamewah launch joy2key??
Post by: gonzo90017 on May 22, 2006, 07:08:18 pm
I finally got it working with XYNTService after a few problems. I set mamewah as shell in regedit and joytokey as a service but it kept giving me Error 2147467259 ctrlr- initialisedI. As a workaround I setup Joytokey as shell and mamewah as a service. Now it works great!! Thanks jelwell!