Thanks to both of you !
So I've tried to use autohotkey to launch a game, it's perfect:
Run, ROTK.exe, C:\PC Games\LSDA Le Retour du Roi tm\, max
KeyWait, 3Joy7, D
WinClose, ahk_exe ROTK.exe
But I want to launch and exit "JoyToKey" in same time, only for this game, and it's not working correctly.
I've tried that:
Run, JoyToKey.exe, C:\JoyToKey\, min
sleep, 1000
Run, ROTK.exe, C:\PC Games\LSDA Le Retour du Roi tm\, max
KeyWait, 3Joy7, D
WinClose, ahk_exe ROTK.exe JoyToKey.exe
And when I press my hotkey, only the script ahk_exe close....
Am I doing something wrong ?
EDIT : it works now, joytokey start minimized so I think my script has no windows to close. I use Processclose so:
Run, JoyToKey.exe, C:\JoyToKey\, min
sleep, 1000
Run, ROTK.exe, C:\PC Games\LSDA Le Retour du Roi tm\, max
KeyWait, 3Joy7, D
Process,Close,JoyToKey.exe
WinClose, ahk_exe ROTK.exe