Page 1 of 1

Fermer Script

Posted: 09 Feb 2021, 14:55
by GeraldB
Bonjour,
J'ai Raiden IV Overkill installé sur ma borne d'arcade tournant sous LaunchBox (BigBox), mais pour quitter le jeu il faut appuyer sur la touche "F2" et cette touche ne peut pas être réassignée. J'ai donc créé un petit script avec AutoHotKey pour pouvoir quitter Raiden IV à l'aide de la touche Esc. et j'en ai profité pour modifier les touches z et x :

Code: Select all

#SingleInstance, Off
Esc::F2
LCtrl::z
Alt::x
return
Tout fonctionne, mais le script reste ouvert après avoir fermé Raiden IV. Comment fermer le script en même temps que le jeu (Raiden IV : Overkill)
merci 😉

Re: Fermer Script

Posted: 09 Feb 2021, 15:57
by joedf
depuis https://www.autohotkey.com/boards/viewtopic.php?p=176972#p176972
Tu peux essayer qqch comme ceci :think:

Code: Select all

monJeux := "C:\Program Files (x86)\...\RaidenVI.exe"
SetTitleMatchMode, 3
Run, % monJeux
WinWait, Jeux, , 5
SetTimer, Jeux_Exit, 100
 
Jeux_Exit:
IfWinNotExist, ahk_exe %monJeux%
    ExitApp
Return

Re: Fermer Script

Posted: 10 Feb 2021, 13:23
by GeraldB
Merci, je vais essayer ;)

Re: Fermer Script

Posted: 06 Mar 2021, 11:58
by Thinky
Tout simplement en écrivant ceci :

Code: Select all

ExitApp