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 Try the site in https mode Site News

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

  

Author Topic: X-Arcade & nullDC exit emulator hotkeys  (Read 4648 times)

0 Members and 1 Guest are viewing this topic.

michaelbarrett1

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:December 16, 2016, 04:42:29 pm
  • I want to build my own arcade controls!
X-Arcade & nullDC exit emulator hotkeys
« on: April 20, 2016, 04:42:56 pm »
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