I have a simple recoil script but I want it to only be active when holding shift.
Code: Select all
#NoEnv
SendMode Input
MsgBox
*~$Shift:: Hotkey, *~$LButton, Toggle
*~$End:: Hotkey ,*~$LButton, Toggle
*~$LButton::
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 12, uint, 0, int, 0)
Sleep, 15
DllCall("mouse_event", uint, 1, int, 0, int, 12w, uint, 0, int, 0)
Sleep, 5
}
Return