Company of Heroes

Company of Heroes

61 rating
Remapping Hotkeys using AutoHotkey (wasd instead of arrow keys)
Oleh Samer Sultan
Remap Company Of Hero's keyboard commands using AutoHotkey. Replace arrow keys with WASD and reassign the view keys.
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Intro
Company Of Heros does not have an in game option that allows for the remaping of keys. I found a good solution posted on the relic forums (http://forums.relicnews.com/showthread.php?111795-Remapping-Hotkeys-Alternative-Solution) that was helpful.
AutoHotkey
You will need to download AutoHotkey for this to work: http://www.autohotkey.com/ if you are unfamiliar with the program start here: http://www.autohotkey.com/docs/
Running the script
1) Create a new text document / or autohotkey script:



Name it coh.ahk (or something similar)


------------------------------------

2) Paste the following lines of code into your script doc:

a::left s::down d::right w::up q::Numpad0 c::a XButton1::alt ~capslock::Suspend ~capslock UP::Suspend `::Suspend ^!z:: WinSet, Style, -0xC40000, a WinMove, a, , 0, 0, % A_ScreenWidth, % A_ScreenHeight




Save your code an close out your editor.

------------------------------------

3) Double click the script to run it.


37 Komentar
Theta-6 15 Apr @ 11:25am 
Does this still Work?
Soulbanisher 27 Nov 2022 @ 3:38am 
That was an interesting angle but now it crashes, -window in properties
Samer Sultan  [pembuat] 26 Nov 2022 @ 3:44pm 
Make sure you have the game in bordered fullscreen not full screen
Soulbanisher 26 Nov 2022 @ 4:16am 
So I recapitulate what I do
- downloaded autohotkey and made a autohotkey script
- copied the code in the notepad and saved as COH so the script is called COH.ahk
- pasted it in the COH folder
- double clicked on it so it appears in green (so it's on) in the right corner of my screen
- started the game, continued to the next mission (starting a new campain doesn't work either)
- and nothing, quitted the game, clicked edit script and found out it works (in windows, not in the game)
Samer Sultan  [pembuat] 25 Nov 2022 @ 7:12pm 
a::left
s::down
d::right
w::up
q::Numpad0
c::a
x::h
v::s
b::n
XButton1::alt
~capslock::Suspend
~capslock UP::Suspend
`::Suspend
^!z::
WinSet, Style, -0xC40000, a
WinMove, a, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
Samer Sultan  [pembuat] 25 Nov 2022 @ 7:12pm 
Yeah just copy and paste

its this exact code:

````
a::left
s::down
d::right
w::up
q::Numpad0
c::a
x::h
v::s
b::n
XButton1::alt
~capslock::Suspend
~capslock UP::Suspend
`::Suspend
^!z::
WinSet, Style, -0xC40000, a
WinMove, a, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
````

the download autohot key and run it from auto hot key


Don't forget ` key toggles it on and off.
Soulbanisher 25 Nov 2022 @ 6:30am 
It's not working, it used to work but but not anymore. I don't know what the heck I'm doing wrong, it's just copy paste right?
★ ace ★ 22 Sep 2019 @ 5:55pm 
this is a guide........ why?
Neutral 31 Jan 2019 @ 7:14am 
It's Twenty-Nine-Teen and im looking over your article yet again @TesseracT. This gem to me my fellow man. i'm inspired to write something back here, tons a lots G.
ChickenJorge 5 Jul 2018 @ 4:03pm 
okay, thanks.