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: Both Start Butttons able to Initiate Game?  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

CWorley

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:August 09, 2019, 07:44:36 pm
Both Start Butttons able to Initiate Game?
« on: March 04, 2012, 01:03:20 am »
Is there a way to have both player 1 and player 2 start buttons able to start a game from the mala menu?

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: Both Start Butttons able to Initiate Game?
« Reply #1 on: March 04, 2012, 01:22:36 am »
Is there a way to have both player 1 and player 2 start buttons able to start a game from the mala menu?


Only from looking for a way to do so myself, no... it seems you can only assign one button to start game. Would love to know a good way though!
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #2 on: March 04, 2012, 04:56:27 pm »
I don't think Mala can do this out of the box, but download and install AutoHotKey, dump this in a text file and rename it to have the .ahk extension

Quote
setTitleMatchMode, 2

#IfWinActive, MaLa
2::1

and have this running whenever you use Mala. This assumes that 1 and 2 are your player 1 and player 2 start buttons. This script just maps the 2 key to 1 but only in Mala. So if you have 1 set to start, pressing either 1 or 2 will start a game. Hope this helps.

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1215
  • Last login:December 19, 2018, 01:29:48 am
Re: Both Start Butttons able to Initiate Game?
« Reply #3 on: March 04, 2012, 05:07:01 pm »
Another way if you are using an Ipac would be to remap the shift operation of "2" to another key and have this key start the game, key 1 is the default shift key on an Ipac.



TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #4 on: March 04, 2012, 07:50:34 pm »
With help from Nitz I used autohotkey to start games in mala on 2, 5 or 6 as well as 1.  post up if you have any trouble getting a script set up. 

CWorley

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:August 09, 2019, 07:44:36 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #5 on: March 06, 2012, 10:06:45 pm »
I don't think Mala can do this out of the box, but download and install AutoHotKey, dump this in a text file and rename it to have the .ahk extension

Quote
setTitleMatchMode, 2

#IfWinActive, MaLa
2::1

and have this running whenever you use Mala. This assumes that 1 and 2 are your player 1 and player 2 start buttons. This script just maps the 2 key to 1 but only in Mala. So if you have 1 set to start, pressing either 1 or 2 will start a game. Hope this helps.

Can you expand on how to do this?  I've downloaded autohotkey and created a .ahk file with your text.  Is there another step?  Thanks!

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #6 on: March 07, 2012, 09:40:23 am »
This is what worked for me.  I don't know if the Persistent call is required, but it works.  Everything else I had to put in or it wouldn't work.  If you don't want coin buttons 5 and 6 to start a game you can leave those out.  Also, I compiled this to .exe using the tool that comes with AHK, that worked better for me for some reason. 

Code: [Select]
;
;This script is to use either coin up button, either start button or either fire button to start a game while in MaLa.

setTitleMatchMode, 2

DetectHiddenWindows,on

#IfWinActive, MaLa

#Persistent
2::1
5::1
6::1
return

CWorley

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:August 09, 2019, 07:44:36 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #7 on: March 07, 2012, 09:58:49 am »
After compiling the code into an .exe file, is there anything else that needs to be done?  Do I need to run that file before starting Mala or should it run on its own when Mala starts?

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #8 on: March 07, 2012, 10:40:18 am »
Put it in your windows startup folder so it runs anytime windows is running.  The IfWinActive = mala call will only allow it to change the inputs if the mala window is active, so it won't mess up any other programs. 

CWorley

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:August 09, 2019, 07:44:36 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #9 on: March 16, 2012, 10:19:35 am »
Thanks guys.  Got it working.  I'm using Mala Launcher to run the code when Mala starts.

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #10 on: March 16, 2012, 10:37:22 am »
[Beavis]

HehHehHeh.  He said "third input"  Heh Heh.

[/Beavis]

 >:D

MTPPC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 535
  • Last login:November 26, 2021, 02:25:46 pm
Re: Both Start Butttons able to Initiate Game?
« Reply #11 on: March 27, 2012, 12:22:49 am »
If you are using a joystick adapter or a trackball with mouse button inputs, you can use those inputs as the second button and assign it to start the game so you could have 3 (keyboard, mouse and joystick) buttons assigned to start the game. I'm currently using keyboard 1 and mouse left to start games.
Pinball and Video Arcade Repair in Billings, MT USA
http://pinballmd.com/