Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: rockmes on December 12, 2005, 10:03:58 am
-
l have finally worked out the way to start ppjoykey before l start my pc games in mamewah version 1.6.0.2. what l would love to happen is for the pre emulator app to close down as l finish the game. is there some post emulator app command that l should put in my pc.ini file for it to close down?
can somebody check mi ini to see what l am missing?
### Pc Games.ini (mamewah v1.62) ###
emulator_title Pc
### List Generation Settings ###
rom_path c:\arcade
rom_extension lnk
dat_file
nms_file
catver_ini_file
list_generation_method rom_folder
### Execution Settings ###
pre_emulator_app_commandlines C:\arcade\ppjoykey.bat{nowait}{autoquit}
emulator_commandline PC "[rompath]\[name].[romext]"{dosbox}{safelaunch}
post_emulator_app_commandlines
general_app_commandlines
### Artwork Locations ###
artwork_image_paths C:\aracde\images
movie_preview_path
movie_artwork_no 1
### Screen-Saver Settings ###
enable_music_in_screensaver 1
select_random_game 0
saver_type slideshow
movie_path
movie_fullscreen 1
quit_delay 30
saver_commandline
### Additional Settings ###
music_path
lcd_display_file_path
### Settings used by MAMEWAH ###
current_list 0
tia guys
-
I would just use a post_emulator_app bat file to kill the process. I don't know if this is the preferred method but it will work.
taskkill /im ppjoykey.exe /f
-
this is the information inside my current bat file to open ppjoykey with a specified ini for it.
ppjoykey.bat:
@ECHO OFF
C:
cd C:\Program Files\joytokey\
ppjoykey.exe C:\Program Files\joytokey\player2.ini
cls
exit
Buzz880 could you please tell me exactly what l need to type to the new bat file to close the above one.
l tried the one you posted, but doesnt work.
Cheers
-
Open a command window and type what I wrote directly and make sure it works.
It works fine for me but weho knows maybe taskkill isn't a standard windows XP home feature or something... I am using PRO.
You could maybe add:
c:\
cd \
to the start of the exit bat but I don't think its necessary.
-
you were right. windows XP home edition doesnt have taskkill so l downloaded a program called pskill.exe and it works grouse. For those of you that would like to know ,this is what l did.
put the pskill.exe file into c:\ drive , and then made a bat file called pskill.bat :
C:\pskill -t ppjoykey.exe
then l edited my mamewah config file for my PC emulator (PC Games.ini)
under:
post_emulator_app_commandlines C:\arcade\pskill.bat {nodosbox}{safelaunch}{nowait}{autoquit}
and thats it guys, it works grouse . Now when l start my pc games [virtua tennis], mamewah activate my bat file to start ppjoykey.exe first. then when l exit the game mamewah activates my other bat file to close ppjoykey.exe.
-
Thats good you worked it out.
I'm thinking you don't need the extra bat file.
You could probably just put your whole pskill commandline into your ini directly
C:\pskill -t ppjoykey.exe{nodosbox}{safelaunch}{nowait}{autoquit}
just saves a step for maintenance and trying to figure out whats going on 6 months from now.
-
l just tired doing it the way u suggested but didnt work on mamewah. it wouldnt close the program. l wonder why it is so? it should work that way , shouldnt it?
-
l just tired doing it the way u suggested but didnt work on mamewah. it wouldnt close the program. l wonder why it is so? it should work that way , shouldnt it?
Try it with {dosbox} enabled and maybe take out autoquit and nowait for now since I'm not sure what those do.
-
Done:
http://forum.arcadecontrols.com/index.php?topic=36006.msg320157#msg320157
This was for a prior version of mamewah, but of course applies.
You can either set up the service and just START and STOP the service in mamewah before and after running the game.
Or just use the old instructions to include the START and STOP in the bat file itself.
Joseph Elwell.