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: pre_emulator_app_commandlines  (Read 1707 times)

0 Members and 1 Guest are viewing this topic.

rockmes

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:June 05, 2016, 09:41:38 am
  • Don't you love it?
pre_emulator_app_commandlines
« 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

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: pre_emulator_app_commandlines
« Reply #1 on: December 12, 2005, 10:42:34 am »
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


rockmes

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:June 05, 2016, 09:41:38 am
  • Don't you love it?
Re: pre_emulator_app_commandlines
« Reply #2 on: December 12, 2005, 02:18:51 pm »
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

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: pre_emulator_app_commandlines
« Reply #3 on: December 14, 2005, 01:46:39 am »
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.

rockmes

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:June 05, 2016, 09:41:38 am
  • Don't you love it?
Re: pre_emulator_app_commandlines
« Reply #4 on: December 14, 2005, 08:45:03 am »
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.

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: pre_emulator_app_commandlines
« Reply #5 on: December 14, 2005, 10:30:11 am »
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.

rockmes

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:June 05, 2016, 09:41:38 am
  • Don't you love it?
Re: pre_emulator_app_commandlines
« Reply #6 on: December 14, 2005, 06:49:05 pm »
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?

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: pre_emulator_app_commandlines
« Reply #7 on: December 14, 2005, 06:58:12 pm »
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.

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Re: pre_emulator_app_commandlines
« Reply #8 on: December 14, 2005, 07:08:50 pm »
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.