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.

Recommended Posts

Posted

Hi all!!!

My problem is that when I put the line in gameex to start automatically the program joy2key, the program runs, but it not load my profile config (in joy2key), it load a profile called "first configuration" and there is no key mapped on that profile.

I tried to change te map keys during gameex execution, but when I exit gameex, and return to it, the config is all time "ereased", and return another time to "first configuration" without any map keys.

When I launch joy2key without gameex, it runs perfect, and all my configs are listed in the program.

The problem is only when I load joy2key automatically with gameex.

Any suggestions?

Thanks in advance!!!

Sorry for my bad english.

Posted

Hi again Evilforces,

This should help you out :)

How to load joytokey with a profile, and close joytokey upon exiting an emulator:

1. Copy Joytokey.exe, joytokey.ini, and your configuration file to the gameex directory.

(C:\Program Files\GameEx)

2. Make a shortcut of the Joytokey.exe and rename it to "JoyToKey Pinball" (without the exe in the name).

3. Right click on this new shortcut and select properties and add the name of the profile to the 'target box' like this:

"C:\Program Files\GameEx\JoyToKey.exe" "Pinball.cfg"

4. Double click on the shortcut just to check that the right profile is loaded.

Now to add it to gameex, open the configuration application, and select the emulator you wish to load joytokey with. Enter the following into these boxes:

Launch Before:
start "" "C:\Program Files\GameEx\JoyToKey Pinball.lnk"

Launch After:
taskkill.exe /F /IM JoyToKey.exe

(its important to include the start "", otherwise gameex will pause after loading joytokey)

This should work fine, i tested it earlier. But let us know if you have any problems :)

  • Thanks 1
Posted

Amos, you are my King!!!! loollll!!!

Thanks a lot.

At this time I´m at work, but i will try it this afternoon.

Posted

Okay I personally don't see why this forum is so hot and heavy on creating shortcut links to contain a command-line. I'm not knocking the main information...just the creation of a shortcut. ;)

It seems to me that it would be cleaner to edit your Emu ini file for GameEx or enter stuff through GameEx's control pannel.

  Quote
LaunchBefore=C:\Program Files\GameEx\JoyToKey.exe "Pinball.cfg"

LaunchAfter=taskkill.exe /F /IM JoyToKey.exe

Just seems like it would be one less file to have to contend with is all.

hehe now I'm going to go hide before I get my ass chewed. ;)

PS

Tom has made mention that GameEx has the ablity to do all that JoyToKey does...maybe it would be even cleaner to make use of that feature...*hides*

Posted

No need to hide; i've no IT experience, just trying to make sense of it all :) Its unlikely anyone will give you a hard time here.

I know what you mean though; i dread the thought of having to set everything up again! The cleaner the better.

I think the shortcut method is a more reliable way to use profiles within gameex. It has something to do with the batch file location & the location of the profile.cfg files.

Tom; how can gameex use key mapping like j2k? just wondering if there is an easier way?

Posted

oddly enough I have issues when trying to use shortcuts like that...the shortcuts by them selves are fine...but if I go trying it through GameEx...I run into issues.

Far as I'm aware...most excutables will look for a file first in their own directory...unless told to look else where.

So in my above example j2k would be expecting pinball.cfg to be in the same folder as j2k.exe...so in that fashion what I suggest above is ugly. ;)

Maybe we need var's like %working% for the current working directory....hehe or maybe we already have such things and I'm just frankly unaware. :)

*Update*

The JoyToKey stuff can be done through the GameEx control panel, second page of an Emu under "Advanced Config"

Posted
  Nologic said:
The JoyToKey stuff can be done through the GameEx control panel, second page of an Emu under "Advanced Config"

Mr Speirs, what havent you thought of ^_^

Posted

LOL, ok I switched from the joytokey to the advanced config method (because the launch after command wasn't exiting JoytoKey) and it works great but is there any way to map additional axis and a second joypad?

If not then deem this a request. :)

Thanks

Posted

Well what I had for LaunchAfter could very well have been wrong...since I don't use J2K.

Some thing like below might be more correct:

LaunchAfter=%windir%\system32\taskkill.exe /F /IM JoyToKey.exe

Course thats assuming that GameEx can use system vars...which more than likely it can.

How ever Advanced Config is probably the way to go....just to keep things as clean as possible.

  • 4 months later...
Posted

-REMOVED-

Posted

Okay...

I can get JoyToKey.exe to launch successfully but I can't seem to get it to terminate...

Anyone help me out?

.:. EDIT .:.

I got it. I don't know why it works this way but it does.

LaunchBefore=start "" "C:\Program Files\GameEx\JoyToKey Pinball.lnk"
LaunchAfter=start "" "C:\Program Files\GameEx\killjoytokey.exe"

I used Amos's shortcut trick in an earlier post....

  Amos82 said:
How to load joytokey with a profile, and close joytokey upon exiting an emulator:

1. Copy Joytokey.exe, joytokey.ini, and your configuration file to the gameex directory.

(C:\Program Files\GameEx)

2. Make a shortcut of the Joytokey.exe and rename it to "JoyToKey Pinball" (without the exe in the name).

3. Right click on this new shortcut and select properties and add the name of the profile to the 'target box' like this:

"C:\Program Files\GameEx\JoyToKey.exe" "Pinball.cfg"

4. Double click on the shortcut just to check that the right profile is loaded.

I also used an AutoIT script I found on the internet. I'm not sure who the author is...

Extract that zip file to your GameEx directory. Then, assuming you use the default setup path, you can paste the LaunchAfter line right on in there.

If anyone has issues using the other two previously mentioned methods, try this one instead.

Posted
  Nologic said:
*Update*

The JoyToKey stuff can be done through the GameEx control panel, second page of an Emu under "Advanced Config"

I see a slight problem with this. You can only map 1 joystick in the config. Or am I missing something here. I would like to use this method now if possible to map 2 joysticks. One for 1st player and ofcourse the second for 2nd player.

Posted
  lingpanda said:
I see a slight problem with this. You can only map 1 joystick in the config. Or am I missing something here. I would like to use this method now if possible to map 2 joysticks. One for 1st player and ofcourse the second for 2nd player.

You can map two joysticks, just click on 'joystick 2' in the joytokey window. The config file has another section

[Joystick 2].

You may be able to map more if you play around with the config, ie make a

[Joystick 3] section.

Alternatively, if you need to map more than 2, you could try using a batch file to launch multiple instance of joytokey, or use the advanced config in gameex to map a third controller.

The advanced config can also be used to kill an extra process (if you were launching multiple instances of joytokey).

Are you tempted yet Ling :)

Posted
  amos_82 said:
You can map two joysticks, just click on 'joystick 2' in the joytokey window. The config file has another section

[Joystick 2].

You may be able to map more if you play around with the config, ie make a

[Joystick 3] section.

Alternatively, if you need to map more than 2, you could try using a batch file to launch multiple instance of joytokey, or use the advanced config in gameex to map a third controller.

The advanced config can also be used to kill an extra process (if you were launching multiple instances of joytokey).

Are you tempted yet Ling :)

I'm using joytokey fine. I'm actually trying to use Tom's built in joy to key feature under PC Mouse V3 under advanced config. I only see where 1 joypad can be configured. Plus its not labled as player 1. I assume it defaults to whatever pad is plugged in. I think this would be the best way to do it. I could do away with joytokey.exe

I would like more info on how to kill process via. the advanced config.

Thanks!

Posted
  lingpanda said:
I'm using joytokey fine. I'm actually trying to use Tom's built in joy to key feature under PC Mouse V3 under advanced config. I only see where 1 joypad can be configured. Plus its not labled as player 1. I assume it defaults to whatever pad is plugged in. I think this would be the best way to do it. I could do away with joytokey.exe

I would like more info on how to kill process via. the advanced config.

Thanks!

I havent used the kill process in the advanced config, but here's what is says:

#Additional processes to wait to exit or close on exit. Dont include the .exe. Leave blank not to use.

Process1=
Process2=
Process3=
Process4=

(C:\Program Files\GameEx\CONFIG\EMULATORS)

Posted
  amos_82 said:
I havent used the kill process in the advanced config, but here's what is says:

#Additional processes to wait to exit or close on exit. Dont include the .exe. Leave blank not to use.

Process1=
Process2=
Process3=
Process4=

(C:\Program Files\GameEx\CONFIG\EMULATORS)

Yeah I've tried using but have no clue how to get it to work. The instructions are a little vague. It seems that when I put "JoyToKey.exe"(Minus the exe) for example in the process1= field. It simply waits for the process to close before returning to GameEx. I want it to close. The instructions say it can be used to "Wait to exit" or "close on exit". So what I'm doing is simply the first part. There must be more.

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