Simple Anti-RSI Script

Guide

Hi friends

Some actions in Darktide require you to left-click a lot, quickly. This is not good for your index finger and can lead to RSI (repetitive strain injury).

Here's a simple AutoHotkey script to help with that.

~XButton2::{
	Sleep(500)
	while(GetKeyState("XButton2", "P")){
		Send("{LButton down}")
		Sleep 1
		Send("{LButton up}")
		Sleep 100
	}
}

This makes holding XButton2, which is the 2nd thumb button on my mouse, after 500 milliseconds, send a left-click every 100 milliseconds until you release XButton2. The 500ms delay is there so that if you have another action bound to that button, you can still use it. If you have a binding that requires holding down XButton2 then this will probably not play nice with that.

In order to use this, you need to install AutoHotkey v2. Once AutoHotkey v2 is installed, make a file with a .ahk extension, paste the code into it, and then run the script by double-clicking on it. Then I advise going to the Psykhanium/Meat Grinder and trying it out to make sure it's working.

If you want to use something other than XButton2, go to this page, find the Name of the key you want to use, and replace all the script's instances of XButton2 with your key's name.

If you're worried about anti-cheat, fear not. I've been using this script and a few others for weeks and I haven't been banned.

That's it. I hope this helps some people out.

Cheers

Posted Feb 3, 2023, 6:17 AM UTC

7140
hotbox4u•

Just as a general warning: Autohotkey gets flagged sometimes. Unlikely that's the case for Darktide, but if you have a mouse that comes with a software (e.g. Razor) you can set up macros there too that are virtually undetectable (unless you automate something, like an anti-afk script).

38
pantong51•

Devs said it's ok.

But EAC can flag this input as virtual. Even with send as game input in AHK.

AHK can do pointer manipulation and EAC will also flag.

But moot point, EAC last I check was not enabled in game atm

4
VolcanicBear•

Moot point*

Not criticising, just letting you know, it's a weird word.

2
pantong51•

Ty mb lol

2
Maelarion:Ogryn: Yo mama•

Reminder that some games have an aggressive anticheat that won't like you having AHK running.

20
FrizzyThePastafarian:Zealot: I AM THE COMET, I BUUURN THE IMPURE•

Reminder that FS has always been openly completely fine and supportive of macros and ahk scripts for accessibility.

6
KerberoZ:Ogryn: Ogryn•

Reminder that Fatshark sadly isn't too reliable when it comes to any information. The point for AHK being a potential reason for a ban stills stands

16
FrizzyThePastafarian:Zealot: I AM THE COMET, I BUUURN THE IMPURE•

There was an issue with that in VT, iirc, and they did a roll-back of bans.

For all their faults, there's a few things FS does that are very good and player-friendly / supportive.

I trust them here.

5
Maelarion:Ogryn: Yo mama•

Reminder that I said some games, not Darktide.

5
FrizzyThePastafarian:Zealot: I AM THE COMET, I BUUURN THE IMPURE•

In the DT sub.

In a post about a macro for DT.

While not specifying you do not mean DT.

How foolish of me.

7†
Maelarion:Ogryn: Yo mama•

Oh right I forget that people only play, or have installed, one game at a time how silly of me.

3†
greyACG•

holy fuck you're dumb as a rock.

1
[deleted]•

[deleted]

1
fedoraislife•

Honestly, it's a good point that he makes, though. While Fatshark have said they're cool with AHK/macros, it's easy for people to accidentally leave the script running and potentially open other popular games where it's a bannable offense.

3
FrizzyThePastafarian:Zealot: I AM THE COMET, I BUUURN THE IMPURE•

That's entirely fair, the original comment was ambiguous to me.

I read it as a "I'm not sure if DarkTide has an aggressive anticheat, but just be careful in case it does.

1
HarryZeus•

And some games have an aggressive anti cheat that... Wait a second!

1
Xuerian•

This is possible, but rather rare. Unlike Cheatengine, which is more common to have actions taken by merely running at the same time.

2
breadedfishstrip•

To add to this, you can get plain USB foot pedals cheaply (ie: a regular usb pedal, not a GAMER EXTREME RACING pedal) and bind it any input. It's extremely handy for autohotkey toggles like this if you don't want to lose any mouse buttons. Also handy for push-to-talk in my experience.

7
RedbeardtOP:Veteran: Veteran•

pedal

Huh I had never even considered this.. Will start looking for a good value pedal rn.

8
-Agonarch⚙ Adeptus Mechanicus•

Are there any well priced ones you'd recommend, and are they variable input? (like a controller, or like a keypress?)

4
Harry_Nice•

Thanks man - this will be really useful

4
OkMoment1357:Ogryn: Professional Boxer•

Mashing is rarely effective.

4
RedbeardtOP:Veteran: Veteran•

I had heavy sword light attack spam in mind when making this.

6
OkMoment1357:Ogryn: Professional Boxer•

Ah a man of taste that likes the pirate sword

3
RedbeardtOP:Veteran: Veteran•
3
OkMoment1357:Ogryn: Professional Boxer•

Love it. I pretend to be a pirate as zealot, I'm waiting on that damn eyepatch

2
G_Man42•

True, but I'm still bookmarking this for the situations where I do need to spam left-click like a maniac.

My Zealot is going to appreciate this.

5
ComradeHX:Zealot: Zealot•

You're better off binding an attack key to space button.

2
J1mj0hns0n•

I can attest to this not being bannable, as I asked Aqshy the community manager for vermintide if scripts were acceptable and she said yes.

2
YsBrann•

i already have a button on my mouse that does this

1
Porg-Life:Psyker: Psyker•

I just play on a controller for the better ergonomics and put a turbo fire at the end of the trigger pull

1
SillyScareCrow:Ogryn: please play damnation•

Ya I just set up a auto clicker on my logitech. this is really nice of you to post for those who don't have a mainstream gaming mouse though.

1
grumpyretard•

Op it's the MVP of the day

0
Total_Scott•

Or just position your arm correctly.

-14
UrdUzbad•

Or just get up from the PC and go outside because you're not getting RSI unless you're already playing an unhealthy amount.

1