Company of Heroes

Company of Heroes

61 valoraciones
Remapping Hotkeys using AutoHotkey (wasd instead of arrow keys)
Por Samer Sultan
Remap Company Of Hero's keyboard commands using AutoHotkey. Replace arrow keys with WASD and reassign the view keys.
   
Premio
Favoritos
Favorito
Quitar
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 comentarios
Theta-6 15 ABR a las 11:25 a. m. 
Does this still Work?
Soulbanisher 27 NOV 2022 a las 3:38 a. m. 
That was an interesting angle but now it crashes, -window in properties
Samer Sultan  [autor] 26 NOV 2022 a las 3:44 p. m. 
Make sure you have the game in bordered fullscreen not full screen
Soulbanisher 26 NOV 2022 a las 4:16 a. m. 
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  [autor] 25 NOV 2022 a las 7:12 p. m. 
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  [autor] 25 NOV 2022 a las 7:12 p. m. 
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 a las 6:30 a. m. 
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 a las 5:55 p. m. 
this is a guide........ why?
Neutral 31 ENE 2019 a las 7:14 a. m. 
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 a las 4:03 p. m. 
okay, thanks.