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: Exiting mame by holding a key?  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

iscariot

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 316
  • Last login:June 14, 2022, 02:00:34 pm
Exiting mame by holding a key?
« on: January 31, 2014, 11:29:38 am »
Just wondering this but is there a way to exit mame in windows or linux by holding down a button for several seconds?  I'd like to have certain options like tab and escape being mapped like this so that I don't have to add extra buttons to a cabinet.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 26, 2024, 08:00:17 pm
  • <insert personal text here>
Re: Exiting mame by holding a key?
« Reply #1 on: January 31, 2014, 11:34:02 am »
You can do an AHK script that sends a key press if another key press is held in duration IIRC.  I don't have an example handy but it shouldn't be to hard a script. 

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Exiting mame by holding a key?
« Reply #2 on: February 09, 2014, 06:22:05 pm »
Yes. I have this feature built into the windows app I made in my sig using autohotkey. Hold pause for 3 seconds to exit mame.

For linux, try http://code.google.com/p/autokey/