Company of Heroes

Company of Heroes

61 avaliações
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.
   
Premiar
Adic. a Favoritos
Nos Favoritos
Desfavoritar
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 comentários
Theta-6 15 de abr. às 11:25 
Does this still Work?
Soulbanisher 27 nov. 2022 às 3:38 
That was an interesting angle but now it crashes, -window in properties
Samer Sultan  [autor] 26 nov. 2022 às 15:44 
Make sure you have the game in bordered fullscreen not full screen
Soulbanisher 26 nov. 2022 às 4:16 
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 às 19:12 
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 às 19:12 
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 às 6:30 
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 set. 2019 às 17:55 
this is a guide........ why?
Neutral 31 jan. 2019 às 7:14 
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 às 16:03 
okay, thanks.