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 --- Bug Reports --- 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 1558 times)

0 Members and 1 Guest are viewing this topic.

iscariot

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 313
  • Last login:March 05, 2019, 04:21:30 am
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:May 16, 2019, 12:48:24 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: 1628
  • Last login:Today at 05:58:30 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/
« Last Edit: February 09, 2014, 09:31:18 pm by keilmillerjr »