Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: jimmy2x2x on June 10, 2010, 11:32:41 am

Title: Unload JoytoKey from command line?
Post by: jimmy2x2x 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.
Title: Re: Unload JoytoKey from command line?
Post by: nick3092 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.
Title: Re: Unload JoytoKey from command line?
Post by: jimmy2x2x 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?
Title: Re: Unload JoytoKey from command line?
Post by: nick3092 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

Title: Re: Unload JoytoKey from command line?
Post by: jimmy2x2x on June 12, 2010, 10:12:48 am
That did it!

Many thanks ;)

Might be time to buy a keyboard encoder haha