AutoHotkey has been broken for me for 8 months now, I made a forum post before but I deleted it so I'm going to make another one. So for some reason keys will just stop pressing randomly, or they will hold down literally forever and then the game freezes because as you know in areas like Megaman when you restart it doesn't load the frame until you let go of the inputs, and my jump key does weird stuff like hold down longer then I pressed it or double jump even though I'm holding it down. I have been using ICUE this whole time but the issue is I can't have controls only work if the game is in focus, linked apps in ICUE don't work because the game's .exe file is not the real process name for the game, when you launch the game it unpack into the temp folder into "stdrt.exe" and also a bunch of MMF2 extensions. You can select that exe with ICUE and it works great, but the issue is every time you close the game it deletes that folder and every time you launch it, it creates a new folder with a new name so ICUE can't find it anymore. So that's out of the question, I tried using AHK to check for WinActive and if the window is active then switch profiles on ICUE but ICUE doesn't register any inputs being sent to it by any software... I asked @LogicPQ for his controls and he gave them to me, I used his exact controls, his AHK version and it is still broken... I have a Corsair K70 RGB Pro btw and I'm on Windows 10.
Here's my script, I'm not using WinActive with the class for the game because the game freezes with one of the binds even though it wasn't before: https://www.mediafire.com/file/n8p47zlwabx6l3b/Any%2525_Controls.ahk/file
If someone could help me fix this that would be absolutely amazing! This used to work on my old PC except the game froze sometimes because I had a toggle for Jump & Up, but everything else worked.
Thanks in advance :)
Okay well, luckily I already had a new keyboard coming in the mail because of something else, and I got it today so I'm going to test it out again, wish me luck :)
Thought I'd link to this thread about Capsicain (driver-level remapping) if AHK is giving you problems, which solves modifier-key sticking issues:
Yo short time no see, can you even make that only work if the game window is in focus though?
From what I can tell, nope. Capsicain doesn't interact with Windows events and AHK cannot send events to it; it only listens to the hardware inputs. You'd have to set up an on/off/config-switcher toggle key/combination in Capsicain's config. Capsicain can however trigger AHK to do things it cannot do, but this is more of a programmer's thing than what basic remapping for gaming calls for.
https://github.com/cajhin/capsicain/wiki
https://github.com/cajhin/capsicain/wiki/Combine-with-AutoHotkey
Well then that's the exact same situation I have with the Steel Series software xD. What's stupid is now I don't just need a script for the controls, but I need to change my Steel Series profile every time I play because it's like impossible to type and use the rest of my PC with 0.1 Actuation on the Space Bar LOL. it's almost like it's my PC because AHK seems to work in IWBTG for Logic but not me and I have a very up-to-date PC so it's safe to say it could be incompatibility issues but I don't know what his specs are ofc, I wonder if it's something to do with USB drivers.
My last PC it worked for regular controls but toggling between w::LShift and w::Up for Gradius with a bind didn't work. I have a feeling I am just accidently holding the button too long or something and thinking it was AHK, because in this game there's a 2nd version of walk off where if you jump when you are on a certain pixel of the edge of a block you don't even get a single jump so that makes me think it didn't jump, and I look back at the recording and it looks like that's what happened but there is still doubt.
The toggling on my old PC caused freezes because it created an infinite hold on one of the buttons and as you know the area doesn't load unless you are holding nothing so the game completely freezes, sometimes I couldn't even open it back up and get past the title screen. I probably implemented the toggle incorrectly for this game or something Idk. I remade my AHK script yesterday and made it as minimal as possible and I played for a while and I had no issues but this is what I thought every other time lol. We'll see.
Thanks for the help man.
You're welcome. I'm not going to pretend I fully understand this Guy issue (it kind of sounds like you have to switch your mappings mid-strat? which is strange that it would be allowed, but not to digress).
Basically
IfWinActive <Boshy> / #WinActive <Boshy>
are best to be avoided. They will cause sticking on non-modifier keys. For Boshy, that's probably because Ctrl+Y is a window that's separate from the Boshy process.
Something like
LShift/LCtrl/LAlt/etc.::Key
will occasionally cause those keys to get stuck under AHK because they're modifier keys, but the reverse of it should be fine unless you're doing IfWinActive/#WinActive.
So, if you wanted a minimalist solution, you can set up Capsicain with multiple profiles, and quickly switch between them using Esc+1/2/3/etc.
And if you've got additional AHK needs like quickly triggering an AHK script for copying practice savefiles or something like that, Capsicain can also be set up with hotkeys to those scripts instead of having to run a separate AHK script every time.
Esc+1 profile would have
w::LShift
and Esc+2
w::Up
available for switching mid-gameplay. (If that's allowed.)
And this would eliminate any chances of key-sticking issues entirely. I can't be bothered myself because non-modifier keys haven't given me any problems for a long time now. I just launch everything with a batch file, including Boshy.













