Hey, im currently using this rapid fire / no recoil script, is there a way to modify it so that it only works when im holding rmb (in zoom)?
Edit: found a way#NoEnv
SendMode Input
_auto := true
~LButton::autofire()
Numlock::_auto := ! _auto
F1::ExitApp
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
SendInput {LButton DownTemp}
Sleep 25
mouseXY(0, 1)
SendInput {LButton Up}
Sleep 25
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,in t,0)
}
Last edited by rl965; 10-04-2016 at 11:51 PM. Reason: solved
rl965 (10-05-2016)
wups...
Sorry @rl965 Lately there have been alot of reposts, so I was kind of on auto pilot.
Anyway, to answer your question:
Change
toCode:if GetKeyState("LButton", "P")
(I think, I don't know AHK, but it's an easy guess. If it doesn't work, I suggest using google )Code:if GetKeyState("RButton", "P")
omarzaghdoudi2001 (01-25-2017),rl965 (10-05-2016)