Would anyone know how I might be able to run an AHK script along with Howard_Casto's excellent Visual Pinball Wrapper (vp-launch6.exe)?
The only reason I need to run an additional script is so I can map a 2-button exit combo to escape (ESC key) and map the Mouse 1 and Mouse 2 buttons (LButton & RButton). Everything else that the vp-launcher6.exe does is great.
I'm using Mala. I tried to create an executable from AHK which would IN TURN launch vp-launcher6.exe and set up the new key mapping, but I can't get it to work. I'm trying to pass the same table name info to vp-launch6.exe as before but I must be missing something.
Below is my AHK code. Any help?:
___________________________________
#NoEnv
SendMode Input
SetWorkingDir, C:\Arcade\Visual Pinball\
#SingleInstance force
Run, "vp-launch6.exe" /open "C:\Arcade\Visual Pinball\Tables\%1% /play /exit
LButton:

RButton::G
~2 & ~4::
Send {Esc}
ExitAPP
return
___________________________________
In Mala's settings I just tried to point it to the new executable (VP Table Launcher.exe) I created (using above non-working code) instead of vp-launch6.exe. All other settings are the same. So essentially I have an .exe launching another .exe. Will that work?
Executable:
C:\Arcade\Visual Pinball\VP Table Launcher.exe
Rom Path:
C:\Arcade\Visual Pinball\Tables
Rom Extensions:
vpt
Execution/Command Line:
"%rom%.%ext%"
Maybe there's another way to do this and I'm just making it more complicated than it needs to be?
Thanks in advance for any help.
[EDIT] Solved this issue on this thread:
http://forum.arcadecontrols.com/index.php/topic,130016.msg1329961.html#msg1329961