So, i've made this little script for Fortnite (STW).
The goal is to have it spam click the mouse button while i keep it pressed down and also move the mouse slightly down for every shot to compensate for recoil.
Code: Select all
##NoEnv
#SingleInstance, force
SetBatchLines -1
SetKeyDelay, 30
SetMouseDelay, 10
correctX := 0 ; Horizontal recoil correction, + right - left
correctY := 5 ; Vertical recoil correction, + down - up
~LButton::
if WinActive("Fortnite")
{
KeyWait LButton, T0.35
If ErrorLevel
{
While GetKeyState("LButton", "P") && !GetKeyState("Ctrl", "P")
{
Click
MouseMove, %correctX%, %correctY%, 1, R
}
}
}