Company of Heroes

Company of Heroes

62 arvostelua
Remapping Hotkeys using AutoHotkey (wasd instead of arrow keys)
Tekijältä Samer Sultan
Remap Company Of Hero's keyboard commands using AutoHotkey. Replace arrow keys with WASD and reassign the view keys.
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
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.


38 kommenttia
TeaDrinker 29.1. klo 7.50 
It might be a false positive, but this was flagged as malicious by VirusTotal: https://www.virustotal.com/gui/url/9368ead8695920e057a3b44045a57a9ffafb06f100d096c385c258732061214a
Theta-6 15.4.2024 klo 11.25 
Does this still Work?
Soulbanisher 27.11.2022 klo 3.38 
That was an interesting angle but now it crashes, -window in properties
Samer Sultan  [tekijä] 26.11.2022 klo 15.44 
Make sure you have the game in bordered fullscreen not full screen
Soulbanisher 26.11.2022 klo 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  [tekijä] 25.11.2022 klo 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  [tekijä] 25.11.2022 klo 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.11.2022 klo 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.9.2019 klo 17.55 
this is a guide........ why?
Neutral 31.1.2019 klo 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.