I need a script that spams shift after pressing a button. It's for a Minecraft mod that makes trees and crops grow if you spam shift
The problem is that it can't be too fast, or Minecraft won't register the button input
idk how to explain it well, so here's a little demonstration of what I'm trying to automate
https://youtu.be/eA7QB5u_FAQ
[Mod action: Moved topic to “Gaming” section.]
shift spamming script
Re: shift spamming script
Test in Notepad.
Code: Select all
#Requires AutoHotkey v2.0
spam := () => Send('{Shift}')
F3:: {
Static on := False
If on := !on {
SetTimer spam, 50
spam
SoundBeep 1500
} Else {
SetTimer spam, 0
SoundBeep 1000
}
}
-
- Posts: 5
- Joined: 15 Mar 2023, 15:53
Re: shift spamming script
so, how do I replace the "SoundBeep" with "Shift" so that it spams shift and not a sound?
Re: shift spamming script
It already spams Shift; check your KeyHistory. You can remove the beeps at will. Delete the beep lines.