#Include, %A_ScriptDir%\xpath.ahkdefault_exe = VPinball 9.2.1 rev815.exePinballX_Config = I:\PinballX\Config\PinballX.ini;Read PinballX config for pathsIniRead, WorkingPath, %PinballX_Config%, VisualPinball, WorkingPathTablePath = %1%TableName = %2%SplitPath, TableName, ,, ext,,; Add extra check rename for VP10If ext = vpx{ StringReplace, table, TableName, .vpx,, All}else{ StringReplace, table, TableName, .vpt,, All}; Read exe tag from xml, if no tag use default_exedatabaseFile = I:\PinballX\Databases\Visual Pinball\Visual Pinball.xmlxpath_load(dbXML, databaseFile ) ; need to read the existing xml otherwise xpath deletes all existing nodesexe := XPath(dbXML, "/menu/game[@name=" . table . "]/exe/text()")If exe = { exe = %default_exe% }Run, %WorkingPath%\%exe% /Play -"%TablePath%\%TableName%"MouseMove, 200, 100WinWait,ahk_class VPinballWinHideWinWait, Visual Pinball PlayerWinWaitClose, Visual Pinball PlayerWinClose, ahk_class VPinballExitApp[VisualPinball]Enabled=TrueWorkingPath=I:\Emulators\Visual PinballTablePath=I:\Emulators\Visual Pinball\TablesExecutable=VisualPinballExeChanger.exeParameters="[TABLEPATH]" "[TABLEFILE]"Add this small file into VP directory - Xpath for reading xml http://www.autohotkey.net/~Titan/dl/xpath.zip Add your default_exe. Path to PinballX config. Path to databaseFile. Compile the ahk script with AHK2EXE. Tag this exe to run as admin. When you want a table to use a different exe other than default add into tag. <game name="AbraCaDabra_FS_B2S"> <description>Abra Ca Dabra (Gottlieb 1975)</description> <manufacturer>Gottlieb</manufacturer> <year>1975</year> <type>EM</type> <hidedmd>True</hidedmd> <hidebackglass>True</hidebackglass> <exe>VPinball990.exe</exe> </game> <game name="Airborne (Capcom)(1996)(Bodydump Jimmyfingers)(1.0)(FS)"> <description>Airborne (Capcom 1996)</description> <manufacturer>Capcom</manufacturer> <year>1996</year> <type>SS</type> <hidedmd>True</hidedmd> <hidebackglass>True</hidebackglass> <exe>VPinball990.exe</exe> </game>