Ghostlines Posted October 1, 2018 Share Posted October 1, 2018 Does anyone know if you can have Dolphin auto load a save state through an AHK? I was able to get something similar working for PCSX2 thanks to the help of Dragon57. However, the script doesnt seem to transfer to Dolphin despite keeping all the inputs the same. I read through some old posts from three years or so ago and there was talk about adding the the ability to command prompt but I dont think it went anywhere. Thats about all the information I could dig up. Am I just doing something wrong? This is the script: #NoEnv Sleep, 3000 SetKeyDelay, -1, 110 Send {F3} Return If I manually push F3, it works. I've tried having the AHK load before Dolphin, after Dolphin, etc. I've got nothing. Quote Link to comment Share on other sites More sharing options...
dragon57 Posted October 1, 2018 Share Posted October 1, 2018 You may need to increase the delay from 3000 to 5000, or even 6000. It depends on how fast the version of Dolphin you are using starts up the game and gets to a state where it can accept input. Quote Link to comment Share on other sites More sharing options...
Ghostlines Posted October 1, 2018 Author Share Posted October 1, 2018 I just tried that and it didnt work. So when I use ahk2exe to convert the text doc to an exe file, it keeps flagging up my anti-virus. It never did this before, so I'm not sure why it's doing it now. It's finding it as Ludicrous.Q. Looks like a false positive so when I white list the ahk I just made, it doesnt work. So I dont know if that's windows cutting off the exe before it even has a chance to work or not? Have you run into this issue before? Everything I've made for PCSX2 works like a charm and I feel like this is just something stupid I'm over looking. Quote Link to comment Share on other sites More sharing options...
neil9000 Posted October 1, 2018 Share Posted October 1, 2018 1 minute ago, Ghostlines said: I just tried that and it didnt work. So when I use ahk2exe to convert the text doc to an exe file, it keeps flagging up my anti-virus. It never did this before, so I'm not sure why it's doing it now. It's finding it as Ludicrous.Q. Looks like a false positive so when I white list the ahk I just made, it doesnt work. So I dont know if that's windows cutting off the exe before it even has a chance to work or not? Have you run into this issue before? Everything I've made for PCSX2 works like a charm and I feel like this is just something stupid I'm over looking. Dolphin has hotkeys you can set to your controller, so while not totally automated you can just set a 2 button combo in the actual Dolphin UI to do what you want. I personally hold select/back and use left bumper to save and right bumper to load states in Dolphin. Quote Link to comment Share on other sites More sharing options...
Ghostlines Posted October 2, 2018 Author Share Posted October 2, 2018 That's a good idea but I was really hoping I could have automated this. No biggie, I'm sure it will be capable at some point. I appreciate your guys' help! Quote Link to comment Share on other sites More sharing options...
dragon57 Posted October 2, 2018 Share Posted October 2, 2018 11 hours ago, Ghostlines said: I just tried that and it didnt work. So when I use ahk2exe to convert the text doc to an exe file, it keeps flagging up my anti-virus. It never did this before, so I'm not sure why it's doing it now. It's finding it as Ludicrous.Q. Looks like a false positive so when I white list the ahk I just made, it doesnt work. So I dont know if that's windows cutting off the exe before it even has a chance to work or not? Have you run into this issue before? Everything I've made for PCSX2 works like a charm and I feel like this is just something stupid I'm over looking. Yes, a ton of Anti-Virus products is coming down hard on AutoHotKey and AutoIt scripts. I have to make exceptions all the time so my utilities will run. I try to get an AutoHotKey script working with Dolphin and report back. Quote Link to comment Share on other sites More sharing options...
dragon57 Posted October 2, 2018 Share Posted October 2, 2018 (edited) Hmm, not sure what to tell you. I set up the latest build of Dolphin with a couple of games. After starting each one separately, I used Shift-F1 while in game to set a save state. I then used your original code above, but used F1 instead of F3, since I used the default key config. Everything works just fine here with the two games I used. Just a second or two after Dolphin goes full screen, the save state is loaded as I would expect. Edited October 2, 2018 by dragon57 Quote Link to comment Share on other sites More sharing options...
Ghostlines Posted October 3, 2018 Author Share Posted October 3, 2018 Hmm? Are you using the stable build? Or a development version? I'm on 5.0 stable. I'm gonna try it with F1 instead of F3. I made a save state with F3 just to keep it simple. Also, I think F1 loads from the last save state made, not necessarily one tied to a specific game. I'll let you know if it works! Quote Link to comment Share on other sites More sharing options...
Ghostlines Posted October 3, 2018 Author Share Posted October 3, 2018 Ok, I got it to work. I went into the hotkeys menu in Dolphin and manually changed "Load State Slot". Now here's where it gets weird. I have to leave it on "Dinput/0/Keyboard Mouse" in order for it to fire. If I switch the profile to "Xinput", it wont auto load the save state. Despite me manually changing all the hotkeys. Quote Link to comment Share on other sites More sharing options...
dragon57 Posted October 3, 2018 Share Posted October 3, 2018 Needing to use "Dinput" mode makes sense. You have to set MAME up the same way if you want to use AutoHotKey, or other key mapping apps with it. Glad you got it working. I hate having what seems to be one-off problems that no one can replicate. 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.