I think we all got frustrated at some point that we can't hold left click to farm trees or those big copper nodes. Got a nice solution for that!
I created a script which sends left mouse clicks to Valheim continuously so we don't destroy our mouse when farming. This will not hijack your mouse, it will just send "virtual" mouse clicks to Valheim.
Here's the code:
LAlt::Pause
f10::
Loop {
ControlClick,, Valheim,, Left, 1, NA
}
Use Left Alt to pause or unpause the script. I used Left Alt as it is favorable to me, but you can change that key to anything else. Here's a list with all the keys: https://www.autohotkey.com/docs/KeyList.htm
This will only work in the Valheim window (even when it is minimized/in the background).
Extra usage: You can use this to level up skills while doing something else. For example equip a mace, go to a tree, activate the script and increase your Club skill while Valheim is minimized!
Hope it will be of use to you boys & gals. Have a nice day!