Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

LaunchBefore, LaunchAfter ... and JoyToKey


Recommended Posts

Posted

First off thanks to Tom for a very, very cool prog.

I've searched for info on this and if I missed something please help me.

I'm trying to setup Atari800Plus with JoyToKey: I want GameEx to launch JoyToKey before starting the emulator and then when it is done I want it to kill JoyToKey so it doesn't hurt my other settings. I have two .cmd files:

LaunchBefore.cmd:

start c:\...\JoyToKey.exe

LaunchAfter.cmd:

killtask /f JoyToKey.exe

I have everything; the .cmd files and JoyToKey in the emulator's folder.

They work flawlessly outside gameex. The emulator works ok while JoyToKey is running and the controls map as i want them to.

But when I run it with gameex, the LaunchBefore works (i see JoyToKey start), the screen goes black, and then it returns to GameEx. If I quit GameEx I'll see that JoyToKey is still running (so the LaunchAfter didn't work)

Anyone know what I'm doing wrong? The emulator works fine without the LaunchBefore and LaunchAfter settings.

Posted
First off thanks to Tom for a very, very cool prog.

I've searched for info on this and if I missed something please help me.

I'm trying to setup Atari800Plus with JoyToKey: I want GameEx to launch JoyToKey before starting the emulator and then when it is done I want it to kill JoyToKey so it doesn't hurt my other settings. I have two .cmd files:

LaunchBefore.cmd:

start c:\...\JoyToKey.exe

LaunchAfter.cmd:

killtask /f JoyToKey.exe

I have everything; the .cmd files and JoyToKey in the emulator's folder.

They work flawlessly outside gameex. The emulator works ok while JoyToKey is running and the controls map as i want them to.

But when I run it with gameex, the LaunchBefore works (i see JoyToKey start), the screen goes black, and then it returns to GameEx. If I quit GameEx I'll see that JoyToKey is still running (so the LaunchAfter didn't work)

Anyone know what I'm doing wrong? The emulator works fine without the LaunchBefore and LaunchAfter settings.

Theres no need to use JoyToKey with the latest versions of GameEx, it has the required functionality built into it now. Use an Advanced Emulator config. Click the help in config for more info, and look at one of the ones provided for example.

Cheers.

Posted
Theres no need to use JoyToKey with the latest versions of GameEx, it has the required functionality built into it now. Use an Advanced Emulator config. Click the help in config for more info, and look at one of the ones provided for example.

Cheers.

am i able to map beyond button6? i can't seem to map button9.

Posted
No sorry, not at the moment.

it's working pretty good anyway- thanks Tom. I'm wondering if the problem with the LaunchBefore is a timing issue. Do you know an easy way to delay a batch file? I searched a little but only found solutions based on a microsoft resource kit.

Posted
it's working pretty good anyway- thanks Tom. I'm wondering if the problem with the LaunchBefore is a timing issue. Do you know an easy way to delay a batch file? I searched a little but only found solutions based on a microsoft resource kit.

In your emulator config you might want to try the 'also launch' instead. GameEx does not wait for the process to the finish for this. I suspect that will work.

However, if you want to investigate further with LaunchBefore, look at the batch file runitgame.bat in the data directory, or just edit runitgame.bat in the start menu group.

Posted
No sorry, not at the moment.
If you're using an XBox controller, more buttons and POV hat assignments would be a good thing to add. On some PS2 and Xbox controllers, the D-pad is assigned to the POV hat.
Posted
In your emulator config you might want to try the 'also launch' instead. GameEx does not wait for the process to the finish for this. I suspect that will work.

However, if you want to investigate further with LaunchBefore, look at the batch file runitgame.bat in the data directory, or just edit runitgame.bat in the start menu group.

Thanks Tom I was able to get JoyToKey working. I tried running runitgame.bat which looked pretty ok but it just seemed to end between the before.cmd line and the line starting the emulator. i ran it using CMD, no messages or anything, just returned to a prompt.

at that point i decided to try alsolaunch and eventually that worked. i needed to add a line to the batch file to change dir because apparently the alsolaunch doesn't start off in the emulator working dir like launchbefore does, but after that it was cool. Thanks again.

Guest
This topic is now closed to further replies.
×
×
  • Create New...