Crabi Posted February 18, 2022 Share Posted February 18, 2022 (edited) Hi guys, i'm trying to launch joy2key profile when i start a game from a platform, (same emulator like retroarch for exemple) i did something like that : on running Script DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" "D:\HFSBox\RocketLauncher\Profiles\JoyToKey\Sony Playstation\Sony Playstation.cfg" on exit script DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" D:\HFSBox\Utilities\JoyToKey\Default.cfg That works manually but not with launchbox/bigbox (it works on running script but not on exit) Do you have any suggestions ? i'm a bit lost ^^' Thanks in advance Edited February 18, 2022 by Crabi Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 18, 2022 Share Posted February 18, 2022 39 minutes ago, Crabi said: it works on running script but not on exit The Exit Script section is for when exiting the game from the Pause Menu. Put your exit script portion below what you have already in your Running Script. You'll need to add a hotkey label for the exit portion. Esc:: usually works Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2022 Share Posted February 18, 2022 1 hour ago, Crabi said: Hi guys, i'm trying to launch joy2key profile when i start a game from a platform, (same emulator like retroarch for exemple) i did something like that : on running Script DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" "D:\HFSBox\RocketLauncher\Profiles\JoyToKey\Sony Playstation\Sony Playstation.cfg" on exit script DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" D:\HFSBox\Utilities\JoyToKey\Default.cfg That works manually but not with launchbox/bigbox (it works on running script but not on exit) Do you have any suggestions ? i'm a bit lost ^^' Thanks in advance Why are you using a script? You can add it as a third app per game and you can use a command line for loading profiles, check my pic : I made a bat for closing it after quitting a game and I added it as a third app but checking "Run after" If you need the bat code, here : @ECHO OFF taskkill /F /im JoyToKey.exe @ECHO ON GREETs Quote Link to comment Share on other sites More sharing options...
Crabi Posted February 18, 2022 Author Share Posted February 18, 2022 1 hour ago, JoeViking245 said: The Exit Script section is for when exiting the game from the Pause Menu. Put your exit script portion below what you have already in your Running Script. You'll need to add a hotkey label for the exit portion. Esc:: usually works Thanks you so much, the script now work when i press Esc, but retroarch do not exit now this is weird. Autohotkey seems to take the priority ! 13 minutes ago, nohero said: Why are you using a script? You can add it as a third app per game and you can use a command line for loading profiles, check my pic : I made a bat for closing it after quitting a game and I added it as a third app but checking "Run after" If you need the bat code, here : @ECHO OFF taskkill /F /im JoyToKey.exe @ECHO ON GREETs i can't do that per game (1400 roms just for playstation) , that why i try to do it for a platform , or is there a way to do it on all game in one time ? 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2022 Share Posted February 18, 2022 You can do it selecting all games with a plugin made by JoeViking245. It's here on the forum GREETs Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 18, 2022 Share Posted February 18, 2022 27 minutes ago, Crabi said: but retroarch do not exit now Esc:: DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" D:\HFSBox\Utilities\JoyToKey\Default.cfg WinClose, ahk_exe retroarck.exe Add the last line. Quote Link to comment Share on other sites More sharing options...
Crabi Posted February 18, 2022 Author Share Posted February 18, 2022 4 minutes ago, JoeViking245 said: Esc:: DetectHiddenWindows On if WinExist("JoyToKey") Process, Close , joytokey.exe DetectHiddenWindows Off sleep, 3000 Run, "D:\HFSBox\Utilities\JoyToKey\JoyToKey.exe" D:\HFSBox\Utilities\JoyToKey\Default.cfg WinClose, ahk_exe retroarck.exe Add the last line. Man i love you ! Thank you very much ! 23 minutes ago, nohero said: You can do it selecting all games with a plugin made by JoeViking245. It's here on the forum GREETs Oh nice ! i'll maybe try it for other platforms it could help a lot ! Thank you for the advice 1 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.