The Forest

The Forest

View Stats:
VenJence Jul 10, 2018 @ 9:16pm
Binding right mouse button to forward
I posted this to a thread in the bug section, thought it ought to be posted in general discussions. The 'official' tips and tricks is almost 600 pages long, so not there. This comment is slightly modified from the original.

To not have mouse keys bindable is pretty lame, any PC/Mouse/Keyboard enthusiast will be put off at the lack of thought given to them by what I suppose is a controller using group of Devs. BUT, in any case, I have rebound mine with AutoHotkey. I use 'v' for the games right mouse button. This works well for me as it is usually assigned to a secondary function of an item in most other games I play. In the settings for key bindings in the game, I set forward to ']', a seldom used key and autohotkey translates a right mouse button click to ']' and all is well. (This file is only for moving forward with the right mouse button and still being able to craft by selecting items there with the 'v' key.)

Of course you can change ']' or 'v' in the script below to whatever you want.

Save the following lines with notepad as 'The Forest.ahk', after installing autohotkey, right click on the file and run the script.

#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.

#IfWinActive ahk_exe TheForest.exe
rbutton::]
v::rbutton

If you would like to have a key toggled, add these lines to the bottom of the file. This one toggles 'c', I use it for crouch. Add as many of these 7 lines as you want to toggle as many keys as you want, just replace the 3 'c' with whatever key you want to toggle.

shift & c::
toggle := !toggle
if toggle
send {c down}
else
send {c up}
return
< >
Showing 1-6 of 6 comments
General Malaise Jul 10, 2018 @ 9:30pm 
I agree it's pretty lame.

I used X Mouse, to use button 3, 4 and 5.
Shodan Nov 16, 2019 @ 2:05pm 
Can't set mouse right click to forward and can't change the shift and control keys from their default (can't assign again after unbinding them from defaults)
AimsKey Nov 17, 2019 @ 7:15am 
Originally posted by Shodan:
Can't set mouse right click to forward and can't change the shift and control keys from their default (can't assign again after unbinding them from defaults)
No mouse, but you can with the other keys you described. You need to hold them for up to 3+ seconds for them to bind. I dont understand why though...
Shodan Nov 17, 2019 @ 10:34am 
thanks, maybe I can bind the mouse using the config files
Doktor Kaputt Feb 21, 2021 @ 10:11pm 
So I am not alone using right mouse button for forward. :happymemes:
Old habit from playing Doom back in the 90s.
Thanks so much for this! This will not only help me in this game, but in many other games that funnily dont allow rebinding mouse keys (or any keys), which is something even Doom, Duke 3D, and other games from the 90s allowed you to do back then without any issues.
Last edited by Doktor Kaputt; Feb 21, 2021 @ 10:13pm
I use the software for my Razer Mouse to remap the buttons on my mouse when the The Forest launches.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Jul 10, 2018 @ 9:16pm
Posts: 6