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: Assigning two keys to one action in Mala - Solved  (Read 2556 times)

0 Members and 1 Guest are viewing this topic.

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Assigning two keys to one action in Mala - Solved
« on: August 28, 2011, 11:25:24 pm »
Ok, Loadman, this was touched on in this thread but I'm not 100% set with the autohotkey idea proposed:
http://forum.arcadecontrols.com/index.php?topic=99463.0

Is it possible to change Mala to accept more than one key assignment for the same command?  I. e. be able to  select a game from the gamelist by pressing the either P1 start, P2 start, coin 1, or coin 2.  Along the lines of the Mame in-game keyboard reassignments: press first key, then enter, 2nd key or input, etc.

I am trying to semi idiot proof the cab (I know . . . .) and make it as easy as possible to select a game.  I have an instruction card but I guess people are not so big on reading these days.  If it's a big deal to do its no worry, forget it, not critical, but if it's an easy feature . . . . As always we appreciate everything you do.  
« Last Edit: February 17, 2012, 02:02:05 pm by TopJimmyCooks »

dopeydog21

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:November 01, 2011, 05:18:50 pm
Re: Assigning two keys to one action in Mala - Loadman
« Reply #1 on: August 30, 2011, 12:31:09 pm »
I'm looking for the same thing as well. I haven't tried the autohotkey approach yet, but plan to give it a go. I'm using Mala tree format to navigate, using the joystick to navigate (left = cancel, right = select, down = scroll down, up = scroll up). Would like to have start button = select also.

-Jon

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Assigning two keys to one action in Mala - Loadman
« Reply #2 on: August 30, 2011, 01:46:14 pm »
You can have the start button, at the moment, you can assign one keystroke or shifted keystroke to each action.  I was asking to assign more than one keycode to the same action.  Just wanted to make sure what i was getting at was clear. 

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Assigning two keys to one action in Mala - Solved w/AHK
« Reply #3 on: February 17, 2012, 02:01:17 pm »
Solved using an AHK script. 

This script sends "1" to Mala when you press 2, 5, 6 which I have linked to P2 start, and P1coin, P2coin.  By using the #IfWinActive, MaLa, call this only runs while the mala window is active, i.e. mame, anything else will run normally without 2, 5, and 6 being remapped.

Code: [Select]
;This script is to use either coin up button and/or either start button to start a game while in MaLa.
setTitleMatchMode, 2
DetectHiddenWindows,on
#IfWinActive, MaLa
#Persistent
2::1
5::1
6::1
return