CoolSolvedRECOIL REDUCER SCRIPT UPGRADE HELP NEEDED

Posts 1–2 of 2 · Page 1 of 1
RECOIL REDUCER SCRIPT UPGRADE HELP NEEDED
Is there anyone who can help me make this script say ON/OFF when I trigger the button of the recoil reducer?


#NoEnv
#SingleInstance force
SendMode Input

ScriptActive = 1

FixAmount = 0.00000000000000000001


RecoilFix(amount)
{
DllCall("mouse_event",uint,1,int,x,int,amount,uint ,0,int,0)
}


{
~Lbutton::
If ScriptActive = 1
{
RecoilFix(FixAmount)
Loop
{
GetKeyState, state, Lbutton, P
if state=U
break
Sendinput {Click down}
Sleep 40
Sendinput {Click up}
Sleep 40
RecoilFix(FixAmount)
}
}
return


;Pauses AutoHotKey Script.

~x::
If ScriptActive = 1
{
ScriptActive = 0
SoundBeep, 400, 400
}
else if ScriptActive = 0
{
ScriptActive = 1
SoundBeep, 1000, 100
SoundBeep, 1000, 100
}
return


~NumpadAdd::
++FixAmount
SoundBeep, 700, 100
SoundBeep, 700, 100
clipboard = %FixAmount%
return


~NumpadSub::
--FixAmount
SoundBeep, 700, 100
clipboard = %FixAmount%
return

~NumpadDiv::
FixAmount-=0.1
SoundBeep, 600, 100
clipboard = %FixAmount%
return

~NumpadMult::
FixAmount+=0.1
SoundBeep, 600, 100
SoundBeep, 600, 100
clipboard = %FixAmount%
return
}

;M9 = FixAmount 1
;G3 = FixAmount 0.700000
Wouldn't a simple if key pressed code work for this? I'd highly suggest making this only activate itself when you're shooting btw.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?