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 --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

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

0 Members and 1 Guest are viewing this topic.

incrediblehark

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:June 14, 2019, 09:48:49 pm
  • I want to build my own arcade controls!
AutoHotKey script request - makaron
« 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!

incrediblehark

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:June 14, 2019, 09:48:49 pm
  • I want to build my own arcade controls!
Re: AutoHotKey script request - makaron
« Reply #1 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