Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    whitten's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    1,459
    Reputation
    21
    Thanks
    491

    Visual Basic Aimbot Source Code

    I think i found a source code for a pixel aimbot.
    I'm not sure how helpful this will be but im pretty sure this code still works.
    Also, im not very good with Visual Basics but anyone good with visual basics try coding one with this source.

    Code:
    ' MODULE...
    ' =========
    Option Explicit
    
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Public Declare Function GetForegroundWindow Lib "user32" () As Long
    Public Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
    Public Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
    Public 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)
    Public Declare Function GetCursorPos Lib "user32" (lpPoint As Point) As Long
    Public Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long
    
    Public Const MOUSEEVENTF_LEFTDOWN = &H2
    
    Public Type Point
    X As Long
    Y As Long
    End Type:
    
    
    ' FORM...
    ' =======
    
    Option Explicit
    
    Dim ProcessHandle As Long, ProcessDC As Long
    
    Private Sub Form_Activate()
    ProcessHandle = FindWindow(vbNullString, "Window Name Here")
    ProcessDC = GetDC(0)
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
    Call ReleaseDC(0, ProcessDC)
    End Sub
    
    Private Sub Timer1_Timer()
    On Error Resume Next
    
    Dim X As Long, Y As Long, PixelColor As Long
    Dim CursorPosition As Point
    
    If (ProcessHandle <> GetForegroundWindow()) Then
    Exit Sub
    End If
    
    Call GetCursorPos(CursorPosition)
    
    For X = CursorPosition.X - 20 To CursorPosition.X + 20
    For Y = CursorPosition.Y - 20 To CursorPosition.Y + 20
    PixelColor = GetPixel(ProcessDC, X, Y)
    
    'Replace RGB value for your specified color
    If (PixelColor = RGB(255, 255, 255)) Then
    Call mouse_event(MOUSEEVENTF_LEFTDOWN, CursorPosition.X, CursorPosition.Y, 0, 0)
    Exit Sub
    End If
    Next Y
    Next X
    End Sub
    Credit for code: cOlo
    Credit for post: whitten001


    [EDIT] - If this is doesn't work, mods feel free to close.
    Last edited by whitten; 08-03-2009 at 03:18 AM.

  2. The Following User Says Thank You to whitten For This Useful Post:

    Iamazn (09-20-2009)

  3. #2
    Ryan's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    7,919
    Reputation
    411
    Thanks
    998
    My Mood
    Relaxed
    Hmm...good job whitten. Maybe Legify or ddd555 could use this.

  4. #3
    ddd555's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Macedonia
    Posts
    1,040
    Reputation
    14
    Thanks
    1,222
    My Mood
    Devilish
    Quote Originally Posted by RPB93 View Post
    Hmm...good job whitten. Maybe Legify or ddd555 could use this.
    Yes, i will try -since i reinstall my windows

  5. #4
    Timmarus's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    212
    Reputation
    10
    Thanks
    20
    Cool, maybe I could make a hack with this.

  6. #5
    whtlight2's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    202
    Reputation
    10
    Thanks
    9
    My Mood
    Doh
    very very good sir

  7. #6
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Well.. when i put this in my microsoft VB program there were a ton of errors... invalid name spaces.... repeats of certain functions... i don't believe this works... or maybe just not for me

  8. #7
    Symbol's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    New York
    Posts
    316
    Reputation
    10
    Thanks
    14
    VB6 or VB .NET?

    Their different.
    Meh what do I care, VB sucks IMO.
    C Languages ftw
    Last edited by Symbol; 08-04-2009 at 09:55 PM.

  9. #8
    ddd555's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Macedonia
    Posts
    1,040
    Reputation
    14
    Thanks
    1,222
    My Mood
    Devilish
    Quote Originally Posted by gwentravolta View Post
    Well.. when i put this in my microsoft VB program there were a ton of errors... invalid name spaces.... repeats of certain functions... i don't believe this works... or maybe just not for me

    Dont copy -paste

  10. #9
    zlavik's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    ƵĻÆVÍĶ
    Posts
    838
    Reputation
    18
    Thanks
    103
    My Mood
    Angelic
    i saw this exact post some where i can remeber O_O

  11. #10
    whitten's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    1,459
    Reputation
    21
    Thanks
    491
    Quote Originally Posted by zlavik View Post
    i saw this exact post some where i can remeber O_O
    like i said i found it...
    meaning leeched from another site.
    so like i said idk if it works, but you people that are good with vb try it.

  12. #11
    sukhans's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    128
    Reputation
    10
    Thanks
    101
    kk igonna try now

    Edit:it works alright but how the hell do i activate it
    Last edited by sukhans; 08-04-2009 at 11:27 PM.

  13. #12
    dranko's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    alaska, gerogia
    Posts
    54
    Reputation
    10
    Thanks
    2
    My Mood
    Bored
    2 bad i cants code...


    [IMG] More Demotivators[/IMG]




    click here if you wanna c megan fox nude!!

    Click above plox!!






    OWNED XD

  14. #13
    SpiKe86's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    153
    Reputation
    10
    Thanks
    135
    My Mood
    Blah
    Its vb6 coding will edit this post later with results. Thanks
    Quote Originally Posted by ghostsbow View Post
    LOL... DUDE UR A GENIUS BRO.... U r a hacking god






  15. #14
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,065
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    There is a module and a Form, read the comments. Make a module and paste teh code there, get the form and paste that code there. Then I think you need to exit the window to get it to start.
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!

  16. #15
    sukhans's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    128
    Reputation
    10
    Thanks
    101
    Quote Originally Posted by User1 View Post
    There is a module and a Form, read the comments. Make a module and paste teh code there, get the form and paste that code there. Then I think you need to exit the window to get it to start.
    meh i did that

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] Cross Fire Aimbot Source Code
    By lol~lol in forum CrossFire Hacks & Cheats
    Replies: 30
    Last Post: 02-20-2010, 12:38 PM
  2. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 37
    Last Post: 02-18-2010, 06:07 PM
  3. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 02-18-2010, 04:47 PM
  4. My Aimbot source code!
    By wertoskiller in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 07-27-2009, 04:46 PM
  5. Cool Visual BASIC clock with code.
    By PandN in forum Visual Basic Programming
    Replies: 0
    Last Post: 07-14-2009, 05:11 AM

Tags for this Thread