Author Topic: Joy2Key with Attractmode  (Read 186 times)

moonpatrol

  • Newbie
  • *
  • Posts: 6
    • View Profile
Joy2Key with Attractmode
« on: November 03, 2018, 08:37:38 PM »
I'm not using rocketlauncher just attractmode and i was wondering if there was a way to launch joy2key with attractmode and certain emulators?

progets

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Re: Joy2Key with Attractmode
« Reply #1 on: November 03, 2018, 10:22:19 PM »
I don't see why you would need joytokey for attractmode itself but if you do you could launch attractmode using a batch file that first calls joytokey and then attractmode. If you do launch joy2key with attractmode you can use the "Associate profiles to target applications" feature of joytokey to assign different profiles for different emulators as described near the bottom of this page https://joytokey.net/en/overview.


If you don't launch joy2key with attractmode (or even if you do) you can launch joytokey when you run your emulator and define the profile you want to load.
Example of existing emulator without joytokey:
Code: [Select]
# Generated by Attract-Mode v2.4.1
#
executable           \Emulators\MAME\mame64.exe
args                 [name]
Example of the same emulator running joytokey with a specific profile
Code: [Select]
# Generated by Attract-Mode v2.4.1
#
executable           \JoyToKey\JoyToKey.exe mameprofile;\Emulators\MAME\mame64.exe
args                 [name]

moonpatrol

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Joy2Key with Attractmode
« Reply #2 on: November 04, 2018, 01:22:29 AM »
Sorry i did not mean with attractmode. I meant is there a way to launch a emulator and joy2key at the same time?

hermine.potter

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: Joy2Key with Attractmode
« Reply #3 on: November 05, 2018, 12:33:34 AM »
@ moonpatrol
you could create a .bat file containing this:
Code: [Select]
@echo off
start "" "path_to_your_emulator\your_emulator.exe"
start "" "path_to_joy2key\joy2key.exe"

or in AM:
Code: [Select]
executable           cmd
args                 /c start "" "C:\path_to_emulator\your_emulator.exe" & start "" "path_to_joy2key\joy2key.exe"
AM Version : 2.4.0
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : WindowsXP x86 SP3
System : Dell Precision T3500 ; Intel X5650 ; 4GB RAM
Emulators : zsnes; mame; dosbox; scummvm; bsnes; fusion; openbor; windows_games; winuae; video; flashgames; vice; visualboy

myriadgamers

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Joy2Key with Attractmode
« Reply #4 on: November 07, 2018, 03:41:12 PM »
I have joy2key and attractmode start up when I first boot my machine (using a Bat file), then joy2key switches profiles depending on the game I have running.

dukpoki

  • Full Member
  • ***
  • Posts: 89
    • View Profile
Re: Joy2Key with Attractmode
« Reply #5 on: November 07, 2018, 09:04:48 PM »
or in AM:
Code: [Select]
executable           cmd
args                 /c start "" "C:\path_to_emulator\your_emulator.exe" & start "" "path_to_joy2key\joy2key.exe"

Hey hermine, i'm assuming if you did this particular argument, AM will close both the emulator and joy2key once you exit the game?  (Perhaps if you assign and use a hotkey like ESC, it will close both programs together simultaneously?)  If so, that's pretty neat and will come in handy.

hermine.potter

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: Joy2Key with Attractmode
« Reply #6 on: November 08, 2018, 12:26:55 AM »
@ dukpoki
Probably it will not close both programs. I do not know surely. This should do it:

See section OpenBOR.
Create an autoit script that kills your emulator and joy2key task (you have to check this information in taskmanager under details).

In AM add a third parameter:
Code: [Select]
executable           cmd
args                 /c start "" "C:\path_to_emulator\your_emulator.exe" & start "" "path_to_joy2key\joy2key.exe" & start "" "path_to_task-kill_skript\task-kill-script.exe"
« Last Edit: November 08, 2018, 12:28:48 AM by hermine.potter »
AM Version : 2.4.0
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : WindowsXP x86 SP3
System : Dell Precision T3500 ; Intel X5650 ; 4GB RAM
Emulators : zsnes; mame; dosbox; scummvm; bsnes; fusion; openbor; windows_games; winuae; video; flashgames; vice; visualboy

Kevin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Joy2Key with Attractmode
« Reply #7 on: Yesterday at 07:05:54 AM »
My Program can also convert Joypadinput into Keyboardinput...If you will try it...

http://meinhtpc.bplaced.net/wordpress/?page_id=30