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: Quitting JoyToKey in Mamewah  (Read 5499 times)

0 Members and 1 Guest are viewing this topic.

moonchilddave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 90
  • Last login:May 17, 2021, 01:21:04 pm
Quitting JoyToKey in Mamewah
« on: July 18, 2009, 01:47:46 pm »
I'm using Mamewah 1.68 and using JoyToKey under Daphne.  All works well, except when I quit a game, JoyToKey is still running which screws things up.  Is there any way to have Mamewah quit it?  An example of my game config:

Code: [Select]
### dle11.ini (mamewah v1.68) ###

### Execution Settings ###
pre_emulator_app_commandlines             c:\program files\ultramap\ultramap.exe c:\mame\ugc\[name].ugc{nodosbox}{nosafelaunch};c:\program files\joytokey\joytokey.exe{nowait}{autoquit}
emulator_commandline                      c:\daphne\daphne.exe dle11 vldp -framefile C:/daphne/vldp_dl/lair/lair.txt -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -homedir C:\daphne -fastboot -bank 0 11011001 -bank 1 00100011 -latency 175 -noserversend -sound_buffer 2048 -fullscreen -x 640 -y 480{nodosbox}{nosafelaunch}
post_emulator_app_commandlines           

Also, is there a way to specify a different configuration for JoyToKey from the command line ("joytokey.exe daphne" doesn't seem to work) ?  I didn't see anything at all in the docs.
« Last Edit: July 18, 2009, 01:49:42 pm by moonchilddave »

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Quitting JoyToKey in Mamewah
« Reply #1 on: July 18, 2009, 04:48:23 pm »
Using the {autoquit} option it should kill Joytokey once you exit the game.

To load a different .cfg file the .cfg has to be in the same folder as joytokey. Also your command line should be something like this:
Code: [Select]
c:\program files\joytokey\joytokey.exe daphne.cfg{nowait}{autoquit}

moonchilddave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 90
  • Last login:May 17, 2021, 01:21:04 pm
Re: Quitting JoyToKey in Mamewah
« Reply #2 on: July 19, 2009, 01:20:23 pm »
Odd... wasn't working before but it seems to be working now.  However I still see it pop up just before the game even though in the settings I have it set to start up inconized.  Is there any other alternative to JoyToKey that works any better.  I mean it works as advertised - but I'd love to get rid of that brief pop up.

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Quitting JoyToKey in Mamewah
« Reply #3 on: July 19, 2009, 02:09:42 pm »
Try xpadder. You can buy the latest version, or if you prefer you can download one of the last freeware versions.
( I included a small tutorial  ;D)

moonchilddave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 90
  • Last login:May 17, 2021, 01:21:04 pm
Re: Quitting JoyToKey in Mamewah
« Reply #4 on: August 14, 2009, 11:09:36 pm »
I just got around to installing from the link provided on MediaFire listed above.  Of course, before doing so, I scanned the archive with Symantec AV.  The 3 files included as the tutorial were instantly quarenteed - being listed as a trojan horse (they looked to be in a foreign language anyway).  Perhaps it was a false alarm - but better safe than sorry.  Anyone else downloading may want to just trash those 3 files to start with, or if you did click on them, run a scan now.

Or better yet... download from a reliable source: http://www.softpedia.com/get/System/System-Miscellaneous/Xpadder.shtml
« Last Edit: August 14, 2009, 11:22:26 pm by moonchilddave »

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Quitting JoyToKey in Mamewah
« Reply #5 on: August 15, 2009, 12:58:02 am »
Well what can I tell you. You got some false positive. I would get a new antivirus if I were you. The 3 files you are referring to are tutorials like I made using a program called Screen2exe. They have been downloaded thousands of times in the last couple of years. This is the first time I here of an antivirus detecting it as a virus.

Edit: I forgot to mention that Mediafire scans all files for viruses when they are being uploaded.
« Last Edit: August 15, 2009, 12:59:47 am by gonzo90017 »

moonchilddave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 90
  • Last login:May 17, 2021, 01:21:04 pm
Re: Quitting JoyToKey in Mamewah
« Reply #6 on: August 15, 2009, 02:03:07 am »
Well, I'm using a Federal Government (free to anyone in the government) licensed version of Symantec Endpoint Protection (Version 11.0.3001.2224) with all the latest definition files... So far it has served me well, and like I said - better safe than sorry.  Wasn't accusing you of trying to propagate something bad.  I'm just very carefull about what I download from filesharing sites like rapidshare and mediafire so I always scan them first.

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3431
  • Last login:Yesterday at 06:03:30 pm
Re: Quitting JoyToKey in Mamewah
« Reply #7 on: August 15, 2009, 09:05:00 am »
I've been running PPJoyKey for years using batch files to load and kill the application. Here is how to do it.
In this example, I'm using PPJoyKey for playing Virtua Tennis:

1) Install the software and configure the virtual joysticks as normal.
2) Create a shortcut to run PPJoyKey in the application's folder, call in something like "PPJoyKeyVT.lnk".
3) Right-click on the new shortcut to edit the properties, so that it loads the config file you want, e.g.:

     "C:\PPkey\PPJoyKey.exe c:\ppkey\virtua1.ini"     

     You can now double-click on that the new shortcut to make sure it works properly.
     However, MameWAH doesn't like launching shortcuts for some reason, so let's wrap that in a batch file:

3) Make a short batch file like this, and call it something like "ppjoykeyVT.bat":

     "@ECHO OFF
      C:\ppkey\ppjoykeyVT.lnk
      EXIT"

     That's the launching all worked out.

4) To close the application, we make another batch file (e.g. close.bat) to kill the task from the command line:

     "@ECHO OFF
       taskkill.exe /F /IM ppjoykey.exe
       EXIT"

     Now that we have done our batch files, we need to get the MameWAH config right.

5) Edit our MameWAH config (virtua.ini) to launch these batch files as pre- and post- emulator commands (PPJoyKey command lines bolded):

     "pre_emulator_app_commandlines             c:\PPKey\ppjoykeyVT.bat;c:\utils\daemon\daemon.exe -mount 0,"c:\cdimages\virtua tennis.nrg"
      emulator_commandline                            c:\VTennis\closemul.exe "Virtua_tennis_PC.exe"{nodosbox}{safelaunch}
      post_emulator_app_commandlines            c:\PPKey\close.bat;c:\utils\daemon\daemon.exe -unmount 0"

That is it!  Enjoy!

Zeb.

PS - As you can also see, I also load and unload the Virtua Tennis disk image seamlessly by using Daemon Tools from the command line.
« Last Edit: August 15, 2009, 10:20:01 am by Zebidee »
Check out my completed projects!