Company of Heroes

Company of Heroes

62 人が評価
Remapping Hotkeys using AutoHotkey (wasd instead of arrow keys)
作者: Samer Sultan
Remap Company Of Hero's keyboard commands using AutoHotkey. Replace arrow keys with WASD and reassign the view keys.
   
アワード
お気に入り
お気に入り
お気に入りから削除
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 件のコメント
TeaDrinker 1月29日 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 2024年4月15日 11時25分 
Does this still Work?
Soulbanisher 2022年11月27日 3時38分 
That was an interesting angle but now it crashes, -window in properties
Samer Sultan  [作成者] 2022年11月26日 15時44分 
Make sure you have the game in bordered fullscreen not full screen
Soulbanisher 2022年11月26日 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  [作成者] 2022年11月25日 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  [作成者] 2022年11月25日 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 2022年11月25日 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 ★ 2019年9月22日 17時55分 
this is a guide........ why?
Neutral 2019年1月31日 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.