WASD keybind script for Strategic Command series

Strategic Command is a series of deeply immersive turn based strategy games covering the greatest conflicts in modern history.
Post Reply
Laki
Posts: 24
Joined: Mon Jan 30, 2023 2:27 pm

WASD keybind script for Strategic Command series

Post by Laki »

I wanted to get back in this game, but trying to relearn the hotkeys and not having WASD movement made me struggle... so much, that I wrote an autohotkey script that rebinds camera movement to WASD and other useful keys around the same area.

I cannot attach the script for you to download, but you can just copy it to notepad and after saving change the file extension to .ahk

You will also need to install autohotkey 1.1 from https://www.autohotkey.com/ when AHK is installed you just run the script and start playing.


What is changed:

Camera movement: WASD

Next Unit: Tab
Previous Unit: Shift + Tab

Show Supply: Q
Hide Units: E
Show Partisans: F

Show Reinforceable Units: R
Show Upgradeable Units: T

Turn Summary: Caps Lock

Maps: 1
Purchace Units: 2
New Units: 3
Diplomacy: 4
Research: 5
Reports: 6



I originally made this for War in Europe, but it seems to be working for World at War and World War 1 as well. I don't have American Civil War so could not test that. If you try this with American Civil War post below and let people know if it it works.

Let me know if I missed any keys or if you come up with any improvements!


Autohotkey Script Code:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

;Strategic Command 2 - War in Europe Autohotkey script.

#IfWinActive ahk_class MAIN_WINDOW

; G – Turn the map hex grid on or off.

; H – Temporarily hide all units on the map.
e::h

; L – Display the last turn’s summaries for reference.
CapsLock::l

; P – Show the location of potential enemy Partisan activity.
f::p

; R – Show reinforceable units, as these will show a green unit strength number.

; S – Show the level of supply your forces currently receive, along with a prediction of how much they will receive if venturing nto enemy territory if you press S again.
q::s

; U – Show upgradeable units and resources, displayed by a green research level number.
t::u

; Page Up/Down – Select the previous or next active unit that has not yet moved.
Tab::Pgup
+Tab::PgDn

; To Set a Path – hold down Ctrl then select a route.

; Shift – Select this to see how far a Carrier that hasn’t yet moved can attack.

; ← ↑ → ↓ – Scroll map left, right, up or down.
w::Up
a::Left
s::Down
d::Right

; +/- Map zoom controls

;Ctrl-D – Diplomacy
4::^d

;Ctrl-E – End Turn
^e::^e

;Ctrl-I – Reports
6::^i

;Ctrl-M – Maps
1::^m

;Ctrl-N – New Units
3::^n

;Ctrl-O – Options

;Ctrl-P – Purchase Units
2::^p

;Ctrl-Q – Quit
^q::^q

;Ctrl-R – Research
5::^r

;Ctrl-S – Save
^s::^s

;Ctrl-Z – To undo moves by Land and Air units (Naval units cannot undo their moves).
Post Reply

Return to “Strategic Command Series”