Author Topic: AutoHotKey script request - makaron  (Read 1825 times)

incrediblehark

  • Newbie
  • *
  • Posts: 5
    • View Profile
AutoHotKey script request - makaron
« on: November 20, 2018, 10:30:20 AM »
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!
« Last Edit: November 20, 2018, 03:34:05 PM by incrediblehark »

incrediblehark

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: AutoHotKey script request - makaron
« Reply #1 on: November 20, 2018, 08:07:42 PM »
Got it to work!


#SingleInstance force

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