Buggy Seat Toggle (Driver, Turret) - AHK Script

Resource

Tiny utility for Dune: Awakening to switch buggy seats

Press Ctrl + F (or whatever you set) while the game window is focused.

1st press → holds F for 1 s, nudges mouse right 200 px → you hop into the turret.

2nd press → holds F again, nudges mouse up 200 px → you’re back in the driver seat.

Keeps alternating every time.

Outside the game the hotkey is re-sent to the current app and you get a 3-second tooltip at the cursor, so normal shortcuts keep working.

User configurable variables at the top: userHotkey and holdDuration.

GitHub Link

#Requires AutoHotkey v2.0 #SingleInstance Force #Warn

; AutoHotkey Script: Buggy Seat Toggle – Dune: Awakening
; Author: dragnmastr85 (Adam)

; Simulates holding “F” and mouse move to swap between turret and driver seats.
; Runs only in the Dune window; everywhere else it passes the hotkey through
; and shows a 3-second tooltip at the cursor.

; Version: 1.1  ·  2025-07-07  ·  Requires AutoHotkey v2


; USER SETTINGS

userHotkey    := "^f"                              ; ^ = Ctrl, ! = Alt, + = Shift, # = Win

holdDuration  := 1000                              ; milliseconds to hold the “F” key

; Don't change below this line

toggle := false                                    ; turret ↔ driver tracker

; HOTKEYS
HotIfWinActive "ahk_class UnrealWindow ahk_exe DuneSandbox-Win64-Shipping.exe"
Hotkey userHotkey, InGame                          ; runs only when game window focused

HotIfWinNotActive "ahk_class UnrealWindow ahk_exe DuneSandbox-Win64-Shipping.exe"
Hotkey userHotkey, PassThrough                     ; runs everywhere else
HotIf                                              ; clear context

; HANDLERS
InGame(*) {
    global toggle, holdDuration

    Send "{f down}"
    Sleep holdDuration

    if toggle
        MouseMove 0, -200, 0, "R"                  ; up → driver seat
    else
        MouseMove 200, 0, 0, "R"                   ; right → turret seat

    Send "{f up}"
    toggle := !toggle
}

PassThrough(*) {
    global userHotkey

    Send "{Blind}" userHotkey                      ; re-send the hotkey string

    MouseGetPos &x, &y
    Tooltip "Script active – hotkey passed through.", x, y
    SetTimer () => Tooltip(), -3000                ; hide after 3 s
}

Posted Jul 7, 2025, 3:18 PM UTC

10
Loading comments…