exodus_cl Posted April 16, 2024 Posted April 16, 2024 Hey guys! I'm trying to load a state in Retroarch using a hotkey, so I'm using an AHK script, but Retroarch does not load the state even if the script DOES send the hotkey (tested in notepad) The non working part of code I have looks like this: sleep, 5000 Send, {f4} If I send, for example, ALT+F4 Retroarch does close, so I don't know what could be wrong. For my purpose, this must be done outside Launchbox using an AHK file. Quote
neil9000 Posted April 16, 2024 Posted April 16, 2024 12 minutes ago, exodus_cl said: Hey guys! I'm trying to load a state in Retroarch using a hotkey, so I'm using an AHK script, but Retroarch does not load the state even if the script DOES send the hotkey (tested in notepad) The non working part of code I have looks like this: sleep, 5000 Send, {f4} If I send, for example, ALT+F4 Retroarch does close, so I don't know what could be wrong. For my purpose, this must be done outside Launchbox using an AHK file. Why not just set the hotkey in retroarch? Quote
exodus_cl Posted April 16, 2024 Author Posted April 16, 2024 (edited) 1 hour ago, neil9000 said: Why not just set the hotkey in retroarch? Lightgun games, I'm trying to avoid the use of a keyboard, the idea is to load a game, wait for 5 seconds and send F4 to load a state in order to skip all the steps to get to the "Mission Start" screen Edited April 16, 2024 by exodus_cl Quote
JoeViking245 Posted April 16, 2024 Posted April 16, 2024 1 hour ago, exodus_cl said: The non working part of code I have looks like this: Before the 'Send' line, try adding SetKeyDelay, 125, 50 Edit: Or longhand like LaunchBox does it from the Pause Menu ; RetroArch loads state with F4 key by default Send {F4 down} Sleep 50 Send {F4 up} Quote
exodus_cl Posted April 16, 2024 Author Posted April 16, 2024 14 minutes ago, JoeViking245 said: Before the 'Send' line, try adding SetKeyDelay, 125, 50 Edit: Or longhand like LaunchBox does it from the Pause Menu ; RetroArch loads state with F4 key by default Send {F4 down} Sleep 50 Send {F4 up} You are the man!!! thank you!!!! Te sleep between the press and the release did it! I tried to send press and release before, but it did not occur to me to put a sleep between them. Thanks again!! 1 Quote
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.