[1] [2]
#Requires AutoHotkey v2.0
; Make the hotkey exempt from suspension so it always works.
#SuspendExempt True
; Bind ScrollLock to toggle suspension and the LED
ScrollLock:: {
Suspend
SetScrollLockState(A_IsSuspended ? "Off" : "On")
}
; Start hotkeys that only work inside Company of Heroes
#HotIf WinActive("Company of Heroes") and not A_IsSuspended
; Remap WASD to the arrow keys for camera movement
w::Up
a::Left
s::Down
d::Right
; Remap the ~ key (tilde) to Numpad0/Space for the Tactical Map
~::space
; I'm having a problem getting this to work, I'm not sure if I did
; something wrong or what. I copy pasted the scroll lock from the AI
; but even without this, I still couldn't get it to work.
; https://www.autohotkey.com/boards/viewtopic.php?p=611343#p611343