heres my latest version. requires AHK 1.1
#if (GetKeyState("Joy7", "P"))
Joy8::Send {Esc}
Joy1::Send !{Enter}
Joy2::Send !{f4}
Joy3::Run C:\Program Files (x86)\Kodi\kodi.exe
Joy4::Run C:\Program Files (x86)\mGalaxy\mGalaxy.exe
Joy6::Send {LWin}
#if
this is built for a 360 controller as input.
my biggest problem right now is that some emulators seem to take exclusive control, or disable external/artificial inputs, and the joystick ESC hotkey won't exit something like MESS, but pressing ESC on a physical keyboard will exit the emulator correctly. Plenty others work fine, though.
Also, I wish alt+f4 worked better in mGalaxy. What's the deal with that? I'd rather just disable those top 10 screens and exit gracefully.