The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: incrediblehark on November 20, 2018, 06:35:05 pm

Title: AutoHotKey script request - makaron
Post by: incrediblehark on November 20, 2018, 06:35:05 pm
I was wondering if anyone could help me set up an ahk script to exit makaron properly from attract mode. When you exit makaron with f8 there is still a window open that needs to be closed. So I would like to be able to press esc to send f8 to close the emulator, then wait a second or 2 and send the alt+f4 command to close the remaining window. If possible I would like this function to only work if each of these windows is running, so that pressing esc while not running makaron will not trigger the f8 and alt+f4 commands. Any and all help is very much appreciated! Thanks!
Title: Re: AutoHotKey script request - makaron
Post by: incrediblehark on November 20, 2018, 11:06:20 pm
Got it to work!


#SingleInstance force

#If ( WinActive("NAOMI") )
Esc::
   SetKeyDelay, -1, 110
   Send {F8}
   Sleep, 3100
   WinClose, NAOMI emulator
 
#If
Return