AHK script not working

As stated I can not get my ahk script to run at all. I have run in windowed borderless as admin etc. etc.
I have seen numerous posts about this issue. Some people seem to be able to get it to work. Others can not.
I am just using some basic double tap scripts. Outside of Grim Dawn the script works flawlessly. In Grim Dawn zilch…

Anyone point me to a proper solution to this?
thanks

Try adding this

!^5::Suspend

and hitting Ctrl+Alt+5 twice in-game. If that works you can try automating it with processwait, winwaitactive, or something of the sorts but I couldn’t get it to work consistently.

Process, wait, Grim Dawn.exe
WinWaitActive, Grim Dawn
Sleep 30
Send !^5
Sleep 3
Send !^5

that worked. thank you!
have not tested winactive automation but it works by using that simple suspend toggle.

would I just need to toggle suspend once after loading into game? or do I need to do it every time I load a new area?

why is this even a problem in this game and why do people have ti working and other do not I wonder??

You only have to do it once every time you launch the exe. I don’t think it persists if the game crashes or you close it however I never really payed attention to that.

I use it because the game doesn’t recognize my mouse buttons without it and I think that’s due to how older games got their input. I have no idea why this game needs the script to be suspended though. If other people got it working normally it might have something to do with the different ways Autohotkey can send input but I haven’t seen anyone confirm that.

fantastic thank you

the automate script should work with alt tabbing right?
so every time GD goes active it will suspend toggle?

Np. It should and it usually does for me but sometimes it would only send it once. When I tried automating the launching of item assistant with Grim Dawn it wouldn’t consistently work though. I think it’ll work if the game window isn’t active when it toggles but that may have been why it was only sending it once actually. If you mean if it’ll persist once you alt tab, it does.

thanks a lot
I appreciate the help. this is an odd problem but yay for helpful people with solutions!

I use ahk quite a bit with no issue. Make sure you are not running the game as admin (launching steam will do this as the option to run as admin under compatibility)

Make sure you are using sendmode input instead of even (input is the default)

Test the script by running it as admin and see if it works then.