[Death Stranding] Adding Auto Run function

Post gaming related scripts
HACB
Posts: 1
Joined: 04 Aug 2020, 14:32

[Death Stranding] Adding Auto Run function

04 Aug 2020, 14:51

I made an Auto Run Key for Death Stranding (PC), because holding down "w" to run or drive is cumbersome.

Auto Run will activate with when pressing "y"
It automatically deactivates Auto Run when pressing "w", "s", "f", "Esc", "Alt+Tab" or by pressing "y" again.
The Script does not know when you aren't in game, stop or pause the script if necessary.

Code: Select all

#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.
	
~y::
	if(!yDown && !Active){
		YDown := True
		Active := True
		Send {w Down}
	}
	else if(Active &&  !YDown){
		Active := False
		Send {w Up}
	}
return

~y Up::
	YDown := False
return

~w Up::
	wDown := False
return

~w::
	if(!wDown){
		wDown := True
		if(Active){
			Active := False
		}
	}
return

~s::
~f::
~Esc::
~!Tab::
	if(Active){
		Send {w Up}
		Active := False
	}
return
Attachments
Death_Stranding_-_Auto_Run.ahk
(668 Bytes) Downloaded 8 times

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests