[Code]Anti-recoil + RapidFire
This is my anti-recoil code with in rapid fire that still needs testing/reporgrammed
Code:
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long Private Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long) Private Const MOUSELEFTDOWN = &H2 Private Const MOUSELEFTUP = &H4 Private Const VK_LBUTTON = &H1 Private Const VK_PGDN = &H22 Private Const VK_PGUP = &H21 Private Const VK_END = &H23 Private Const VK_HOME = &H24 Private Const VK_PLUS = &HBB Private Const VK_MINUS = &HBD Private Type POINTAPI X As Long Y As Long End Type Dim Coil As POINTAPI Dim EX As Long Dim WHY As Long Dim Pixel As String Sub CoilMinus() Dim Speed Speed = Timer1.Interval Speed = Speed - 1 If Speed = 0 Then Speed = 1 End If Timer1.Interval = Speed Label1.Caption = " Recoil Speed:" & Speed End Sub Sub CoilPlus() Dim Speed Speed = Timer1.Interval Speed = Speed + 1 If Speed = 101 Then Speed = 100 End If Timer1.Interval = Speed Label1.Caption = " Recoil Speed:" & Speed End Sub Sub PixelPlus() Pixel = Pixel + 1 If Pixel = 101 Then Pixel = 100 End If Label2.Caption = " Pixels:" & Pixel End Sub Sub PixelMinus() Pixel = Pixel - 1 If Pixel = 0 Then Pixel = 1 End If Label2.Caption = " Pixels:" & Pixel End Sub Private Sub Mouse() AntiRecoil = GetCursorPos(Coil) EX = Coil.X WHY = Coil.Y Call SetCursorPos(EX, WHY + Pixel) mouse_event MOUSELEFTUP, EX, WHY + Pixel, 0, 0 Call SetCursorPos(EX, WHY + Pixel) mouse_event MOUSELEFTDOWN, EX, WHY + Pixel, 0, 0 End Sub Private Sub Command1_Click() Pixel = 1 Timer1.Enabled = True Label1.Caption = " Recoil Speed:" & Timer1.Interval Label2.Caption = " Pixels:" & Pixel End Sub Private Sub Form_Load() Label1.Caption = " Recoil Speed:0" Label2.Caption = " Pixels:" & 0 End Sub Private Sub Timer1_Timer() If GetAsyncKeyState(VK_HOME) = -32767 Then Pixel = 1 Speed = 1 Timer1.Enabled = True Label1.Caption = " Recoil Speed:" & Timer1.Interval Label2.Caption = " Pixels:" & Pixel End If If GetAsyncKeyState(VK_END) = -32767 Then Pixel = 0 Speed = 0 Timer1.Enabled = False Label1.Caption = " Recoil Speed:" & "0" Label2.Caption = " Pixels:" & "0" End If If GetAsyncKeyState(VK_LBUTTON) < 0 Then Mouse End If If GetAsyncKeyState(VK_PLUS) = -32767 Then PixelPlus End If If GetAsyncKeyState(VK_MINUS) = -32767 Then PixelMinus End If If GetAsyncKeyState(VK_PGDN) = -32767 Then CoilMinus End If If GetAsyncKeyState(VK_PGUP) = -32767 Then CoilPlus End If End Sub

