Help coding simple aimbot for CSGO
Hi!
I'm using AutoIt library dll in VB6, to make a simple aimbot with pixelsearch.
It works well in a 2d environment, however when i'm inside the CSGO the mousemovement spins me looking downards.
Here is the code:
Declare Variables:
Any ideas?
Thanks in advance
I'm using AutoIt library dll in VB6, to make a simple aimbot with pixelsearch.
It works well in a 2d environment, however when i'm inside the CSGO the mousemovement spins me looking downards.
Here is the code:
Declare Variables:
Code:
Option Explicit Public AUTOIT As New AutoItX3 Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Public MOUSEX As Long Public MOUSEY As Long Public colordepixel As Long Public arraypixelsearch() As Variant Public activobusqueda As Boolean
Code:
Private Sub Timer1_Timer()
On Error Resume Next
MOUSEX = AUTOIT.MouseGetPosX
MOUSEY = AUTOIT.MouseGetPosY
If GetAsyncKeyState(vbKeyJ) Then
colordepixel = AUTOIT.PixelGetColor(MOUSEX, MOUSEY)
Label1.Caption = "J pressed: " & colordepixel
activobusqueda = Not activobusqueda
End If
arraypixelsearch() = AUTOIT.PixelSearch(AUTOIT.MouseGetPosX - 100, AUTOIT.MouseGetPosY - 100, AUTOIT.MouseGetPosX + 100, AUTOIT.MouseGetPosY + 100, colordepixel)
If activobusqueda = True Then
Call AUTOIT.MouseMove(arraypixelsearch(0), arraypixelsearch(1))
End If
End Sub
Any ideas?
Thanks in advance