Shadrach icon

TOAW4 AHK WASD keys++

Shadrach | PRO | 05/05/18 10:10:46 PM UTC | 0 ⭐ | 11250 👁️ | Never ⏰ | []
Autohotkey |

1.55 KB

|

None

|

0 👍

/

0 👎

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
#UseHook On ; Keyboard hook
#SingleInstance force
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
 
#If WinActive("ahk_class The Operational Art of War") and WinActive("ahk_exe Opart 4.exe")
 
; Suspend: Pause
Pause::Suspend
 
;WASD keys
w::Up
a::Left
s::Down
d::Right
 
; Other remappings
+w:: ; Shift+W - Weather Report
  Send w
  Return
+a:: ;Shift+A - Air Unit Report
  Send a
  Return
^a:: ;Ctrl+A - Air Briefing
  Send +a
  Return
+d:: ;Shift+D - Dig In
  Send d
  Return
x:: ;X - Center map on unit
  Send {NumPad5}
  Return
q:: ;Q - Unit Report
  Send u
  Return
+t:: ;Shift+T - Loss Tolenance
  Send l
  Return
^t:: ;Ctrl+T - Stack Loss Tolerance
  Send {Shift}L
  Return
o:: ;Ctrl+O - Theater Options
  Send {Shift}T
  Return
u:: ;U - OOB Units
  Send o
  Return
Tab:: ;Tab - Next Unit
  Send {+}
  Return
+Tab:: ;Shift+Tab - Previous unit
  Send {-}
  Return
^e:: ;Ctrl+E - End Turn
  Send e
  Return
Space:: ;Space - Plan Attack
  Send p
  Return
v:: ;V - Toggle view units, hold down needs check for Space
  Send {Space down}
  KeyWait, v
  Send {Space up}
  Return
e:: ;E - Enter
  Send {Enter}
  Return
~b:: ; Find Place override
  Suspend, On
  input,_,v,{esc}{enter}
  Suspend, Off
  Return
+r:: ;Shift+R; Refresh current unit
  Send r
  Return
^s:: ;Ctrl+S; Save game
  Send !f,+a
  Return
F4:: ; ScrollLock override
  Send {ScrollLock}
  Return
F5:: ; Quick Save
  Send {F9}
  Return
 
#IfWinActive

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎