Warhammer 40,000: Dawn of War - Definitive Edition

Warhammer 40,000: Dawn of War - Definitive Edition

42 ratings
WASD camera for DoW
By Lahgtah
Getting WASD camera controls to work via autohotkey!
3
   
Award
Favorite
Favorited
Unfavorite
1: Download and install autohotkey from the autohotkey website.
B: Create a new text file, input the script
Paste this code

#IfWinActive ahk_exe W40k.exe
a::Left
w::Up
s::Down
d::Right
Return

Into a text file, save as a .ahk file.

Lemon: Running the script and warnings
Just double-click the .ahk file you just made and launch the game; it'll work seamlessly through making WASD function as cursor keys. However, there are some caveats to consider...

1) Any in-game bind that uses W, A, S, or D as default binds will not work
2) Chatting will be awkward to say the least
3) It's likely not safe for multiplayer if there is any sort of anti-cheat in place. Use autohotkey online at your own risk! (granted, WASD enjoyers tend to like the control scheme for singleplayer anyways)

If it doesn't work, try changing the first line of the code to

#HotIf WinActive("ahk_exe W40k.exe")

(thanks to Gunny for finding this)
25 Comments
Lahgtah  [author] 22 Aug @ 12:06am 
@SirDragon89
Yeah it might be. If it requires an older version of ahk, go ahead an use that. I recall encountering something similar with a different file before and just using an older version fixed it.
SirDragon89 21 Aug @ 11:33pm 
When I try to run it by double-clicking I get a:

Ii looks like the script you are trying to run requires AHK v1, wich is not installed. If the version has been misidentified, please add a#Requires directive to your script file.
Script: WASD.ahk
Rule: v1-dir
We can try to download and install AHK v1.1.37.02 for you, while retaining the ability to use the version already installed.
Download and install AHK v1.1.37.02?

Is that normal? And the version I just downloaded and installed btw is v2.0.19.
Grogbosh 21 Aug @ 6:45am 
Ok so now question, what do I put in the notepad to hotkey my arrow keys to the letters taken away
PisangDodo™ 19 Aug @ 1:24pm 
if you have Voiceattack you can do the similar thing just like macro
Icecold 18 Aug @ 2:13am 
To expand on this a little more information:

In step 1, access the website, click download, and install version 2 of the program.

Once the program is installed, open Hotkey Dash and click on New Script.

"Untiled" will appear, where we'll enter a name, a default path that we don't need to touch, and the "Empty" button will be selected by default.

In my case, I entered WASD as the name and created it.

The default path will likely be something like this: C:\Users\"youruser"\Documents\AutoHotkey

Well, a file will have been created there, which we'll open with Notepad and paste Step 2 of the guide into its contents.

Save the file and run it, and it should appear at the bottom of our taskbar.

Open the game... and it works!
Surely there is a hidden config file somewhere for the game where you can force keybindings?
DoctorWiseGuy 17 Aug @ 7:29pm 
Can someone make youtube video please?
LaD1x 17 Aug @ 2:47am 
Do I really need to do all this just to use WASD? bruhhhh -_-
Lahgtah  [author] 16 Aug @ 8:57pm 
@Lulu.dll
Agree. It's really my only major issue with this version.

Starcraft Remastered also did the same thing, but even worse; the original starcraft allowed you to remap camera scroll keys, but the remaster doesn't even though it allows you to remap everything else.
JimbonX 16 Aug @ 2:04pm 
Usr PowerToy by Microsoft. Easy and can tunr on adn of and customize how you like.