Kondorito Posted May 7, 2018 Share Posted May 7, 2018 On 4/26/2018 at 1:25 AM, ckp said: ok. same idea. you just run the process kill (or whatever task you want to do) after you exit the game with controller automation. so here is an example of how to close xpadder when exiting the game with your controller: you just run what you want before the the emulator exit (process, close, {{{startupexe}}}) line runs: $Esc:: { Run, C:\Xpadder\Xpadder.exe /C Process, Close, {{{StartupEXE}}} } Hey @ckp and gang; do you know of a similar AHK content but for JoyToKey? I need to launch JTK with MAME, but then fully kill it when exiting MAME and going back to BB (cannot leave it active while in BB). Any help will be highly appreciated! Quote Link to comment Share on other sites More sharing options...
ckp Posted May 7, 2018 Share Posted May 7, 2018 29 minutes ago, Kondorito said: do you know of a similar AHK content but for JoyToKey? I need to launch JTK with MAME, but then fully kill it when exiting MAME and going back to BB (cannot leave it active while in BB). i am not familiar with jtk, but if you want to kill it when exiting games, just put a line to kill the process before the line that closes startupexe. So, you could use Process, Close or something like taskkill.exe. Quote Link to comment Share on other sites More sharing options...
Kondorito Posted May 7, 2018 Share Posted May 7, 2018 21 minutes ago, ckp said: i am not familiar with jtk, but if you want to kill it when exiting games, just put a line to kill the process before the line that closes startupexe. So, you could use Process, Close or something like taskkill.exe. Thanks. How would the AHK lines be for launching C:\JoyToKey\joytokey.exe, and then taskkilling it? (Sorry as I am not familiar with AHK). Quote Link to comment Share on other sites More sharing options...
ckp Posted May 7, 2018 Share Posted May 7, 2018 (edited) Run, C:\JoyToKey\joytokey.exe $Esc:: { Process, Close, joytokey.exe Process, Close, {{{StartupEXE}}} } Could try that. If process close doesn't kill jtk, you could try: Run, taskkill.exe (with the full path) /F /IM joytokey.exe Edited May 7, 2018 by ckp 1 Quote Link to comment Share on other sites More sharing options...
Kondorito Posted May 7, 2018 Share Posted May 7, 2018 (edited) Thank you @ckp! Worked like a charm! Edited May 8, 2018 by Kondorito Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.