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: Quit button [AutoHotKey issue]  (Read 3935 times)

0 Members and 1 Guest are viewing this topic.

crummy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 98
  • Last login:May 11, 2008, 03:01:58 am
Quit button [AutoHotKey issue]
« on: March 16, 2008, 03:39:07 pm »
Heh, somehow I got this far without figuring out how to quit.

Here are the controls currently on my cabinet (available to windows):
Joy1
Joy2
Joy1 buttons 1-7 (controls + p1start)
Joy2 buttons 1-7 (controls + p2start)
Mouse1+2+3 (insert coin1+2, pause)

I'm sure I can bind a combo (likely joy1b7, joy2b7, mouse3) to quit in MAME. However, this won't work for most other emulators I wouldn't expect. I could shell out for a keyboard encoder like an IPAC and just wire a few keys to trigger Escape but that seems a little excessive. Is there another solution?

FWIW I'm tossing up between GameEx and MALA for my interface.
« Last Edit: March 17, 2008, 01:35:02 am by crummy »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Quit button
« Reply #1 on: March 16, 2008, 04:12:25 pm »
With IPAC you can have a "shift" function. So since you don't have a dedicated ESC key like I do on my panel, most people make "P" or "Pause" their shift button. So you could make exit "P1Start+Pause" or any other button with Pause.

crummy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 98
  • Last login:May 11, 2008, 03:01:58 am
Re: Quit button
« Reply #2 on: March 16, 2008, 04:25:52 pm »
I have Ultimarcs, they support shift functionality I think. I'll look into that.

crummy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 98
  • Last login:May 11, 2008, 03:01:58 am
Re: Quit button
« Reply #3 on: March 16, 2008, 05:21:58 pm »
Alternately, does anyone know of software that will let me bind mouse1+mouse2 (simultaneous) to ESC?

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: Quit button
« Reply #4 on: March 16, 2008, 06:41:44 pm »
try autohotkey, it allows you to make simple scripts that can remap key and mouse input to perform other key or mouse actions.

http://www.autohotkey.com/
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

crummy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 98
  • Last login:May 11, 2008, 03:01:58 am
Re: Quit button
« Reply #5 on: March 17, 2008, 01:34:41 am »
try autohotkey, it allows you to make simple scripts that can remap key and mouse input to perform other key or mouse actions.

http://www.autohotkey.com/
Thanks, this really looks like it could be good. However, it seems to have issues with games. Here's a forum thread I've been using:
http://www.autohotkey.com/forum/post-185084.html#185084

The issue seems to surround pressing two joystick buttons (which means you can't use the standard "button1 & button2" syntax), plus the fact that games (or in this case MAME and GameEx) do fancy things with keyboard input which invalidates some of the standard methods.

So: Has anyone here used AutoHotKey to write an equivalent of "button1 & button2::Send {Esc}" ?

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: Quit button [AutoHotKey issue]
« Reply #6 on: March 17, 2008, 04:23:32 am »
Crummy, I have not. Im sorry you couldnt find your method with it (although you may be able to). Just trying to help. One thing to consider is to change your IPAC and or MAME key config to accept different inputs to do what you want.

good luck.
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

crummy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 98
  • Last login:May 11, 2008, 03:01:58 am
Re: Quit button [AutoHotKey issue]
« Reply #7 on: March 18, 2008, 06:56:57 pm »
I'm using Ultrastik's so I can't configure the signal sent out at all.

I've been considering an alternative: Just using MESS. That emulates everything I want, and MAME lets me configure keys however I want, right?

... Well, maybe not. I could have sworn I saw key bindings to exit in MAME but now I can't find them. Is there a way within MAME to add "Exit MAME" to the key configuration menu? Once I get it in there I can easily set up "Joy7 + 2Joy7" to trigger a quit.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Quit button [AutoHotKey issue]
« Reply #8 on: March 19, 2008, 12:29:21 pm »
Is there a way within MAME to add "Exit MAME" to the key configuration menu? O

You're looking for "UI Cancel"

start game, tab, Input (general), User Interface, UI Cancel
Robin
Knowledge is Power