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: AHK - Antimicro & MAME  (Read 452 times)

0 Members and 1 Guest are viewing this topic.

spisi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 31, 2024, 09:26:50 am
  • I want to build my own arcade controls!
AHK - Antimicro & MAME
« on: January 20, 2023, 09:59:32 am »
Can somebody help me in writing a script that does this:

If Mame is running, disable Antimicro.exe. When exiting Mame, enable Antimicro.exe.
My problem is I'm getting one button that's triggering two functions simultaneously (one from Mame and one from Antimicro).

Thanks in advance.

spisi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 31, 2024, 09:26:50 am
  • I want to build my own arcade controls!
Re: AHK - Antimicro & MAME
« Reply #1 on: January 20, 2023, 10:58:52 am »
I have this which I know is totally wrong:


#SingleInstance Force

#IfWinActive Mame

ExitApp Antimicro.exe

return   

#IfWinActive   




OnExit, Mame.exe

StartApp Antimicro.exe