Help me with this anti-recoil script

Ask gaming related questions
Tocinos
Posts: 1
Joined: 17 Dec 2017, 13:51

Help me with this anti-recoil script

17 Dec 2017, 13:55

So, I got a script for recoil compensation. It almost works perfectly, but I was wondering something. The mouse movement is sent when I let go of the mouse button. Is there a way to send the mouse input immediately after I press the mouse1 button? Because as of now it only works when I let go of the button, but I want it to work right after I press it



#NoEnv
#InstallKeybdHook
#InstallMouseHook
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
SetKeyDelay, -1
SetWinDelay, -1
SetBatchLines, -1
SetControlDelay -1
#MaxThreads 30
#MaxThreadsBuffer on
#KeyHistory 0
SendMode Input
#UseHook

_auto := true

~LButton::autofire()
LAlt::_auto := ! _auto

autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
keywait, LButton
SendInput {LButton DownTemp}
mouseXY(0, 100)
SendInput {LButton Up}
}
else
break
} ;; loop
} ;; if
} ;; autofire()

mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}

RAlt::Suspend
Osprey
Posts: 258
Joined: 18 Nov 2017, 05:50

Re: Help me with this anti-recoil script

17 Dec 2017, 14:40

Recoil is part of the challenge that everyone has to deal with. If you're asking for help in eliminating it in a multiplayer game so that you can have an edge, you're asking for help with cheating and it's doubtful that you'll get such help around here.
Dumitas
Posts: 21
Joined: 14 Dec 2017, 21:32

Re: Help me with this anti-recoil script

17 Dec 2017, 18:27

KeyWait


Code: [Select all] [Download] GeSHi © Codebox Plus

{
keywait, LButton
SendInput {LButton DownTemp}
mouseXY(0, 100)
SendInput {LButton Up}
}


to

Code: [Select all] [Download] GeSHi © Codebox Plus

{
SendInput {LButton DownTemp}
mouseXY(0, 100)
SendInput {LButton Up}
keywait, LButton
}

Return to “Gaming”

Who is online

Users browsing this forum: ShadyShoots and 4 guests