I think you're right because the game was open for me, I'm going to try it and see how it goes
Thanks to both of you for giving me a hand
EDIT..
Great, now it finally closes completely
I left it like that and it works
Do you think it's fine like this? At the moment it works with Aliens Extermination
Thanks :=== )
--------------------------------------------------------------------------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
Run, K:\LightGun_games\Emulators\TechnoParrot LightGun\TeknoParrotUi.exe --profile=AliensExtermination.xml
~1 & 5::
Send {Escape}
Process,Close,TeknoParrotUi.exe
Run,taskkill /im "TeknoParrotUi.exe" /F
sleep, 2000
ExitApp
Return
thank you so much