cause nobody asked, my Combat Hotkey (AHK)

This is my combat hotkey I use, Autohotkey script. It does a couple things for me:

  • Deploys hardpoints
  • Sets pips to 3/0/3 (my combat pips)
  • Deploys my condor fighter with active pilot
  • Turns on nightvision
  • Turns on fight music (random mp3 file)

Also, f4 will exit combat and prepare to jump

  • Recall fighter
  • Retract hardpoints
  • Turn off nightvision
  • Turn off fight music

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#Persistent
#SingleInstance, Force        ;only one instance of the script open
#MaxThreadsPerHotkey 2
SetTitleMatchMode, 2
#IfWinActive Elite - Dangerous (CLIENT)        ; only starts the fun if elite is active window


f1::                    ;COMBAT GO
    Send u                  ;deploys hardpoints
    Sleep 50        ;combat pips. pips are set to num 1-3 and 5 to reset
    Send {Numpad5}
    Sleep 50
    Send {Numpad1}
    Sleep 50
    Send {Numpad3}
    Sleep 50
    Send {Numpad1}
    Sleep 50
    Send {Numpad3}          ;end combat pips
    Sleep 50
    Send {3 down}       ;deploy fighter with crew pilot... what a pita
    Sleep 50
    Send {3 up}
    Sleep 200
    Send {w down}       ;safety key
    Sleep 50
    Send {w up}
    Sleep 200
    Send {s down}       ;select condor (2nd ship)
    Sleep 50
    Send {s up}
    Sleep 200
    Send {enter down}
    Sleep 50
    Send {enter up}
    Sleep 200
    Send {s down}
    Sleep 50
    Send {s up}
    Sleep 200
    Send {s down}
    Sleep 50
    Send {s up}
    Sleep 200
    Send {w down}
    Sleep 50
    Send {w up}
    Sleep 200
    Send {w down}
    Sleep 50
    Send {w up}
    Sleep 200
    Send {enter down}
    Sleep 50
    Send {enter up}
    Sleep 200
    Send {s down}
    Sleep 50
    Send {s up}
    Sleep 200
    Send {s down}
    Sleep 50
    Send {s up}
    Sleep 200
    Send {w down}
    Sleep 50
    Send {w up}
    Sleep 200
    Send {enter down}
    Sleep 50
    Send {enter up}
    Sleep 200
    Send {3 down}
    Sleep 50
    Send {3 up}
    Sleep 50            ;end launch fighter nightmare
    Send n                  ;turn on nightvision
    Sleep 50
    SetTimer, Music, -1     ;turn on fight music
return



f4::
    Send {Numpad6}          ;recalls fighter, set to your recall key
    Sleep 200
    Send u              ;retract hardpoints
    Sleep 200
    Send n              ;turn off nightvision
    Sleep 200
    Process, Close, VLC.exe     ;turn off fightmusic
return


Music:
f3::            ;make f3 key to start random song once first finishes
    songs := ["Bee Gees - Stayin' Alive (Official Video).mp3", "Cardi B, Bad Bunny & J Balvin - I Like It [Official Music Video].mp3", "Dire Straits - Sultans Of Swing.mp3", "Metallica Holier than Thou (Lyrics).mp3", "Mötley Crüe - Kickstart my Heart.mp3", "Muse - Supermassive Black Hole (Original Music Video).mp3", "Sturgill Simpson - Sing Along (Official Video).mp3"]


    Process, Close, VLC.exe            ;closes any instances of VLC prior 
    Random, activeSong, 1, 7            ;assign activeSong to random value
    Run, % songs[activeSong]            ;play song located in random value pos
    Sleep 300
    WinGetActiveTitle, Title
    WinMinimize, % Title                ;minimize vlc and bring elite back
    WinActivate, Elite - Dangerous (CLIENT)
return

Source: https://www.reddit.com/r/EliteDangerous/comments/kwrlgj/cause_nobody_asked_my_combat_hotkey_ahk/

leave a comment

Your email address will not be published. Required fields are marked *