[VB.NET]Code source Color Aimbot.

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Nayres

Membre Banni
Apr 15, 2012
3,431
0
341
Quelque part.
Hello !
Voici un code source pour des jeux fps tel qu'S4 League ou CS et d'autre, qui fonctionne en PixelSearch, soit en recherchant des couleurs.
Creez un nouveau project Application windows form et mettez 2 boutton et 2 timer.

PHP:
Public Class Form1

    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        Dim screensize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim screenshot As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(screenshot)
        g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screensize)
        Dim pointx As Integer = 1
        Dim pointy As Integer = 1
        Dim looking As Boolean = True
        Try
            While looking = True
                Dim atpoint As Color = screenshot.GetPixel(pointx, pointy)
                Dim red As Color = Color.FromArgb(255, 217, 59, 73) 
                If atpoint = red Then
                    Cursor.Position = New Point(pointx, pointy)
                    looking = False
                    pointx = 1
                    pointy = 1
                End If

                pointy = pointy + 1
                If pointy = My.Computer.Screen.Bounds.Height Then
                    pointy = 0
                    pointx = pointx + 1
                End If

            End While
        Catch ex As Exception
            MsgBox("Aucune cible avec cette couleur.", , "Aimbot")
        End Try
    End Sub

    Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
        Dim screensize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim screenshot As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(screenshot)
        g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screensize)
        Dim pointx As Integer = 1
        Dim pointy As Integer = 1
        Dim looking As Boolean = True
        Try
            While looking = True
                Dim atpoint As Color = screenshot.GetPixel(pointx, pointy)
                Dim red As Color = Color.FromArgb(255, 217, 59, 73) 
                If atpoint = red Then
                    Cursor.Position = New Point(pointx, pointy)
                    looking = False
                    pointx = 1
                    pointy = 1
                End If

                pointy = pointy + 1
                If pointy = My.Computer.Screen.Bounds.Height Then
                    pointy = 0
                    pointx = pointx + 1
                End If

            End While
        Catch ex As Exception
            MsgBox("Aucune cible avec cette couleur.", , "Aimbot")
        End Try
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Timer1.Start()
        Timer2.Start()
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Timer1.Stop()
        Timer2.Stop()
        Timer1.Interval = 1
        Timer2.Interval = 1
        Timer1.Enabled = False
        Timer2.Enabled = False
        Button1.Text = "on"
        Button2.Text = "off"
    End Sub

End Class

Si vous souhaitez ne pas avoir de Msgbox qui vous avertis qu'il n'y a pas un pixel avec la couleur voulue supprimez :
PHP:
 MsgBox("Aucune cible avec cette couleur.", , "Aimbot")

Bon voilà c'est tout ;)
 

Evaelis

La Voix de la Sagesse
V
Ancien staff
Apr 28, 2010
22,949
468
1,699
Valhalla
J'ai la flemme de commenter le code mais donne les passages qui te posent problème
 

MarkoX

Membre Banni
Jan 13, 2013
2,166
0
236
39
Ton aimbot color fonctionne à toutes les mises à jour de counter strike ? Même pas besoin de mettre à jour des offsets donc ?

EDIT: Je l'ai testé sur Counter-strike: source, il trouve aucun pixel de la bonne couleur, enfin bref ça fonctionne pas.
 
Last edited:

MarkoX

Membre Banni
Jan 13, 2013
2,166
0
236
39
Et tu peux nous aider pour ça ? Car je sais pas du tout comment faire.