I am trying to set it to ESC key on keyboard.
My following script is working fine with "Race with Ryan" game. I used the same script for the Paw Patrol game (with changing the RaceWithRyan.exe to PPMT.exe) name but with no success.
$Esc::
{
Run, E:\Emulators\Xpadder 2013 work well\Xpadder.exe /C
Process, Close, {{{StartupEXE}}}
}
{
WinClose, ahk_exe RaceWithRyan.exe
}
Send, !{F4}
Escape::
ExitApp
Return
And I used also the more simple one which is:
$Esc::
Send, !{F4}
but also not work. But as I said when this script fails to close the required game (Paw Patrol), I pressed the Alt+F4 on keyboard and the game close directly.
I really appreciate your time spending reading my messages , so please don't bother yourself in that issue. I already teach my kid how to use Alt+F4 to close the game. Don't worry!! 😅