Hi Nitz,
Thanks for taking a look at this problem.
The new rig is only a 1.8Ghz CPU, but plays the CPS3 emu games fine......anyway...... that didn't work. When I used escape to exit, all it did was minimise the screen, and the game kept playing.
Here are the AHK and MAME.CMD files if they help.
AHK......
splashimage, C:\emulators\blackimage.bmp, B
setworkingdir, C:\emulators\cps3
run emulator %1%
WinWaitActive, Model
WinWaitNotActive, Model
sleep 500
splashimage, off
esc::
soundget, volume ;stores the current level of the master volume in a variable called "volume"
soundset, 0 ;sets the master volume to 0, aka mute
send !{F4}
sleep 500 ;this can be adjusted as necessary
soundset, %volume% ;sets the master level to it's level before we muted it
exitapp ;exits the script
MAME.CMD
if "%2" == "C:\emulators\mame141" goto mame141
if "%2" == "C:\emulators\other_emus\cps3" goto cps3
if "%2" == "C:\emulators\other_emus\zinc" goto zinc
sleep 2
mame.exe %1
exit
:zinc
sleep 2
cd C:\emulators\zinc
zinc.exe %1
exit
:cps3
sleep 2
cd C:\Program Files\AutoHotkey
autohotkey.exe C:\emulators\m2.ahk %1
exit
:mame141
sleep 2
cd C:\emulators\mame141
mame.exe %1
Cheers
Sega_mad