Edit: thanks @IAMOBSCENE, if anyone ever has similar issues in the future it's because the second EU4 install was running eu4.exe as admin, which apparently made the script program not work unless also run as admin

I don't know how to program stuff, I stole this script from The Internet because I hate being restricted to mouse/arrow key camera movement in strategy games, so I use this to force EU4 to use WASD movement. It's supposed to run whenever eu4.exe is running, but for some reason it's not working. I had to install a second copy of EU4 so that I had a version that was compatible with the version of Anbennar I have, but it's still eu4.exe that's launching it. It just doesn't work for some reason. Any ideas? It still works properly with my other EU4 install...

the script is:

SendMode Input

GroupAdd WASD, ahk_exe eu4.exe

GroupAdd WASD, ahk_exe hoi4.exe

GroupAdd WASD, ahk_exe CK2game.exe

#IfWinActive ahk_group WASD

w::Send {Up DOWN}

w UP::Send {Up UP}

+w::Send w

a::Send {Left DOWN}

a UP::Send {Left UP}

+a::Send a

s::Send {Down DOWN}

s UP::Send {Down UP}

+s::Send s

d::Send {Right DOWN}

d UP::Send {Right UP}

+d::Send d

^Space::

Suspend Toggle

If %A_IsSuspended%

SoundPlay %WINDIR%\media\Windows Hardware Remove.wav

Else

SoundPlay %WINDIR%\media\Windows Hardware Insert.wav

Return

I guess it's not the end of the world if I can't get it to work but it's super annoying having to use the arrow keys or mouse...

  • IAMOBSCENE [none/use name]
    ·
    2 years ago

    You mentioned installing a second copy which sounds like a non-retail version?

    Perhaps the game is running "as admin" and your AutoHotKey process isn't. That's a common situation where one program wouldn't be able to interact with the other.

    • InsideOutsideCatside [they/them]
      hexagon
      ·
      2 years ago

      Thanks dawg that was the issue, both are non-retail versions but the one I'd been using I wasn't running as admin, the second install was however. So running the scripting program as admin fixed it. Thanks, I really appreciate it, I really hate not having WASD control and it was already ignoring me, I wouldn't have thought that this would be the issue without your comment.

      • IAMOBSCENE [none/use name]
        ·
        2 years ago

        Glad it worked, I feel like I've run into every issue one can have pirating software over the years. Not that issues are common, but I have never paid for any software that uses DRM unless I later cracked it or financed someone else to crack it.

        • InsideOutsideCatside [they/them]
          hexagon
          ·
          2 years ago

          yeah I don't pay for shit unless I really wanna support the devs or it's something that has multiplayer or other features that necessitate buying it

          I WOULD download a car