Doom3 BFG autohotkey configuration

I hate holding shift in order to run.

The script below is a very simple toggle script. You press capslock to toggle run on and off.

If you quicksave, quickload, or go to back menu it resets the running state (and clears capslock). This is because doom-3 itself disables running even if you are holding shift down while quicksaving/loading etc.

#IfWinActive ahk_exe Doom3BFG.exe

~capslock::
    Send {shift down}
    return 
~+capslock::
    Send {shift up}
    return 
~+F9::
    Send {shift up}
    SetCapsLockState, Off   
    return
~+F5::
    Send {shift up}
    SetCapsLockState, Off
    return
~+Escape::
    Send {shift up}
    SetCapsLockState, Off
    return