Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: spisi on January 20, 2023, 09:59:32 am

Title: AHK - Antimicro & MAME
Post by: spisi 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.
Title: Re: AHK - Antimicro & MAME
Post by: spisi 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