The Long Dark

The Long Dark

View Stats:
This topic has been locked
placidus33 Jun 15, 2017 @ 2:32pm
!!! HOW TO BIND THE AUTOWALK TOGGLE TO A KEY !!! (PC Win only)
Hi folks, tired of keeping your finger stuck on the w to walk around? Do you want to chew some snack while enjoing TLD? Here's a very easy step by step guide to assign a toggle autowalk to a key.

Time required = about 5 minutes

In the following example if done exactly as written, when you play TLD, pressing the key "e" will toggle the auto walk function. If you want to assign any other key (not special keys, please, use only letters) just change it in the line where you see the big "THIS IS THE KEY ASSIGNED TO TOGGLE THE AUTOWALK FUNCTION"



1) Open Notepad

2) Copy/Paste the following:





#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

#IfWinActive, TheLongDark

#MaxThreadsPerHotkey 3

e:: ; THIS IS THE KEY ASSIGNED TO TOGGLE THE AUTOWALK FUNCTION

#MaxThreadsPerHotkey 1

if Autowalk
{
Autowalk := false
return
}

Autowalk := true

Loop
{
Send w
Sleep 10
if not Autowalk
break
}

Autowalk := false

return






3) Save your file as TLD autowalk.ahk on your desktop or a directory of your choice
(you can choose whatever name you want but keep the suffix ahk)

4) Open your browser and search for AutoHotKey in Google

5) Download and install and close whatever help window may appear

6) Double-click the previous saved TLD autowalk.ahk

7) Play The Long Dark and enjoy the freedom of autowalking


**** EDIT ****

See post #31 in this discussion for a better and more functional version of the script kindly provided by Kaboom!
Last edited by placidus33; Jun 17, 2017 @ 4:42am
< >
Showing 1-15 of 59 comments
RebelSandGaming Jun 15, 2017 @ 2:33pm 
thanks now tell me for the controller
placidus33 Jun 15, 2017 @ 2:35pm 
Originally posted by Ben Powell:
thanks now tell me for the controller

Sorry, I use only keyboard/mouse combo and I will never ever downgrade to a controller
RebelSandGaming Jun 15, 2017 @ 2:37pm 
Originally posted by placidus33:
Originally posted by Ben Powell:
thanks now tell me for the controller

Sorry, I use only keyboard/mouse combo and I will never ever downgrade to a controller
downgrade how is it a downgrade bro sure i like it cause theirs less buttons and the fact i m on a laptop
placidus33 Jun 15, 2017 @ 3:11pm 
Originally posted by Ben Powell:
Originally posted by placidus33:

Sorry, I use only keyboard/mouse combo and I will never ever downgrade to a controller
downgrade how is it a downgrade bro sure i like it cause theirs less buttons and the fact i m on a laptop

I just want to be helpful for the community. I don't own a controller and I don't know how it works under TLD. I'm not a dev. If you can bind freely keys to your controller under the game Key Bindings, then it should work even for you, provided that your controller act as pressing w to walk. Just bind the "e" key to your button of choice of your controller.

You know that you can plug any USB mouse to your laptop and use it with the keyboard, right?
Last edited by placidus33; Jun 15, 2017 @ 3:29pm
RebelSandGaming Jun 15, 2017 @ 3:40pm 
Originally posted by placidus33:
Originally posted by Ben Powell:
downgrade how is it a downgrade bro sure i like it cause theirs less buttons and the fact i m on a laptop

I just want to be helpful for the community. I don't own a controller and I don't know how it works under TLD. I'm not a dev. If you can bind freely keys to your controller under the game Key Bindings, then it should work even for you, provided that your controller act as pressing w to walk. Just bind the "e" key to your button of choice of your controller.

You know that you can plug any USB mouse to your laptop and use it with the keyboard, right?
i know but i use a lwan chair which doesnt really work well when tryin to use a mouse
IFIYGD Jun 15, 2017 @ 3:42pm 
Originally posted by Ben Powell:
Originally posted by placidus33:

I just want to be helpful for the community. I don't own a controller and I don't know how it works under TLD. I'm not a dev. If you can bind freely keys to your controller under the game Key Bindings, then it should work even for you, provided that your controller act as pressing w to walk. Just bind the "e" key to your button of choice of your controller.

You know that you can plug any USB mouse to your laptop and use it with the keyboard, right?
i know but i use a lwan chair which doesnt really work well when tryin to use a mouse
Buy a lap desk to set your laptop on and use the mouse?
Manel84 Jun 15, 2017 @ 3:47pm 
I don't know how it works, but maybe the controllers simulate the signals of a joystick (as a universal standard?).

On the help key list it says that there are theses keys to try: Joy1 to Joy32
https://www.autohotkey.com/docs/KeyList.htm
listless Jun 15, 2017 @ 3:48pm 
Thanks for sharing this!
Last edited by listless; Jun 15, 2017 @ 4:23pm
RebelSandGaming Jun 15, 2017 @ 3:50pm 
Originally posted by IFIYGD:
Originally posted by Ben Powell:
i know but i use a lwan chair which doesnt really work well when tryin to use a mouse
Buy a lap desk to set your laptop on and use the mouse?
i would but im at base
Manel84 Jun 15, 2017 @ 4:00pm 
placidus33 if you want, you can put this on the guides section, because relating to posts will be long gone forgotten after a week.
placidus33 Jun 15, 2017 @ 4:11pm 
Originally posted by Soldier984 PT:
placidus33 if you want, you can put this on the guides section, because relating to posts will be long gone forgotten after a week.

Well thanks! Can you please tell me how to do it? You know I'm a lazy old bear...
placidus33 Jun 15, 2017 @ 4:14pm 
Originally posted by Soldier984 PT:
placidus33 if you want, you can put this on the guides section, because relating to posts will be long gone forgotten after a week.

Sorry... can I move the entire dicussion or you meant to copy/paste only my first post? I never looked at the giudes section of steam
Manel84 Jun 15, 2017 @ 4:21pm 
Yes just copy your content and work on a guide. I never made nothing before, hopefully is just as easy as making posts. In the past I went to the guides to learn some tips about this game. The only problem now is most of them are outdated.
placidus33 Jun 15, 2017 @ 4:21pm 
Originally posted by Soldier984 PT:
placidus33 if you want, you can put this on the guides section, because relating to posts will be long gone forgotten after a week.

Nevermind! I just looked now. Yeah, it's a good idea, but I need some play-time to see if there are glitches or unexpected errors before publishing a guide (not that a script so simple can generate errors, but.. who knows?). Here is more similar to a chat with a couple of friends. Anyway maybe in a couple of days I'll publish.

Thanks Soldier984
Manel84 Jun 15, 2017 @ 4:26pm 
I was checking the script on my mind and verifying the help from the program, looks that works fine.
What It does more intensely is spamming the key for each 10 milliseconds (1/100 of a second) when active, but because it's a short script shouldn't hurt any computer.
Last edited by Manel84; Jun 15, 2017 @ 4:28pm
< >
Showing 1-15 of 59 comments
Per page: 1530 50

Date Posted: Jun 15, 2017 @ 2:32pm
Posts: 59