I am trying to write an .ahk script to work with Maximus Arcade using my X-Arcade tankstick. The script works great for opening and game controls, but I cannot get the key combo (1 & 3) aka (Pinball L1 and Player 1) or ASCII 49, 51 to exit the nullDC emulator. If I use the keyboard ALT-F4 it will exit but I am trying to remap the tankstick buttons combo 1 & 3 to either send Alt-F4 or to Process, Close, nullDC_Win32_Release-NoTrace.exe. Perhaps it is my script syntax. I have also tried to setup Closemul but I am not sure how that would work within the Maxiumus Arcade preferences.
; nullDC emulator black screen fix - goes to game full screen
Sleep, 600
send, !{Enter}
Sleep, 200
send, !{Enter}
; Remaps keys nullNC emulator doesn’t accept to recognizable keystrokes
LControl::7
LAlt::8
Space::9
LShift:L
; Here’s where I need help, none of these work:
; nullDC emulator exits with keyboard Alt-F4.
; Trying to map combo on X-Arcade Tankstick: pinball button L1 (key 3) & player 1 button (key 1)
; to exit nullDC emu and return to the Maximus Arcade frontend
3 & 1::Send >!{F4}
ExitApp
return
; or
#if WinExist("ahk_class ahk_class ndc_main_window”)
3 & 1::
Process, Close, nullDC_Win32_Release-NoTrace.exe
Return
; or
3 & 1::
Send !{F4}
ExitApp
return
Exit