"hold and drag" autohotkey script.

Forum to share all game modifications
Post Reply
Posts: 42
Joined: Fri Jul 15, 2022 3:53 am

"hold and drag" autohotkey script.

Post by count_fuzzball »

"Hold and drag" autohotkey script!

Primarily for the MC/PZC/FWW Campaigns and Squad Battles series that have yet to get the 'attack move' functionality.
Select your units or stack, click Mouse Button 4 to start the "click and drag", click again on the target hex you want to move to 'release'.

Copy and paste the following into notepad and a save as .ahk, then run it.
#Requires AutoHotkey v2.0

global toggle := 0

XButton1:: {
if (toggle = 0) {
Send "{LButton down}"
toggle := 1


Send "{LButton up}"
toggle := 0

Post Reply