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: Unload JoytoKey from command line?  (Read 7680 times)

0 Members and 1 Guest are viewing this topic.

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1215
  • Last login:December 19, 2018, 01:29:48 am
Unload JoytoKey from command line?
« on: June 10, 2010, 11:32:41 am »
Is there anyway to unload joy2key from the command line, or kill the process?

Maybe an alternative program that can unload from command line?

I want to use it to use daphne launched from mala via a batch file.

My joystick is a hacked 360 pad that uses the POV for the stick, this cant be used from within daphne.

I don't want to use joytokey all the time as it introduces latency on the controls.

nick3092

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
  • Last login:March 22, 2022, 03:57:28 pm
Re: Unload JoytoKey from command line?
« Reply #1 on: June 11, 2010, 09:53:34 am »
Yes, taskkill.  "Taskkill /F /IM joytokey.exe"  I use it in several batch files that start joytokey, depending on the emulator.

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1215
  • Last login:December 19, 2018, 01:29:48 am
Re: Unload JoytoKey from command line?
« Reply #2 on: June 12, 2010, 06:05:52 am »
Sounds just like what I need.

Im trying to put these into mala as pre and post commands, but it doesnt seem to work for me.

ie:

Other emu config  /daphne/execution/pre commands/c:\emulation\joy2key\mame.bat

where mame.bat is:
cd c:\emulation\joy2key\mame
joytokey mame


when I try and run a daphne game, it doesnt get to the game, just loads joytokey with the mame.cfg and waits for me to close the cmd window.

after I close the window, daphne loads and works fine with my config, exits fine and closes joytokey like I want.

Do I have to load joytokey as a service or something to overcome this?
« Last Edit: June 12, 2010, 07:07:38 am by jimmy2x2x »

nick3092

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
  • Last login:March 22, 2022, 03:57:28 pm
Re: Unload JoytoKey from command line?
« Reply #3 on: June 12, 2010, 09:45:29 am »
I think you might need to use "start" and "start /wait" options in your bat file.  They tell windows to move on to the next line, and to wait until the program closes, respectively.  I never tried putting them in the pre/post MaLa commands.  I also checked the option in joytokey to go straight to the task bar to avoid the window opening.

For example, here is what I use to launch my Daphne games:

start joytokey.exe
start /wait C:\Emulators\Programs\daphne\daphne.exe astron vldp -framefile (etc...)
taskkill /f /im joytokey.exe


jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1215
  • Last login:December 19, 2018, 01:29:48 am
Re: Unload JoytoKey from command line?
« Reply #4 on: June 12, 2010, 10:12:48 am »
That did it!

Many thanks ;)

Might be time to buy a keyboard encoder haha