Thanks for the tip. Just got around to working on this and I incorporated your script to my existing ahk script that tells the computer to send esc when 1 & 2 are pressed at the same time. It seems to help to make sure the "1&2" button up signal is sent before esc. See below.
~1 & 2
Send, (1 up)
Send, (2 up)
Send, (esc down)
Blockinput, on
Sleep, 1500
Send, (esc up)
Blockinput, off
Return
One more question. I'm using mame 114 for almost all games and this script works great. However, I use mame 147 for one game using sgt's multi-emulator/1 game-list method.
Mame 147 doesn't recognize the ahk script. Which I believe is because later versions of mame recognize direct inputs only. I would program mame default to cancel when 1&2 are pressed at the same time but unfortunately, when I do that, I get the same problem (the game starts up after I exit).
Could I add a "process, close" command to the script for mame 147 only?
Thanks again!!!