well would you look at that, using a different key, in this case "A" worked, somehow the "esc' key in my PBFX3 acts almost as if its hardcoded and cannot be over written. Very Very weird but at least i have something that work and now just need to do a simple remap on my arcade. Thanks very much for you help.
BTH, I didnt have a "$" at the start of the scrip, is that needed as i had it when i was using "$Esc::" ? just asking, tks again!!!!
PS- actually took out the "$" in the original script you gave it and now that works. Esc now exits the game completely.
So i confirm that this works:
Esc::
Send !{f4}
going to sleep so much better tonight now