Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › Visual Basic Aimbot Source Code

Visual Basic Aimbot Source Code

Posts 1–15 of 20 · Page 1 of 2
WH
whitten
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.
#1 · edited 17y ago · 17y ago
Ryan
Ryan
Hmm...good job whitten. Maybe Legify or ddd555 could use this.
#2 · 17y ago
ddd555
ddd555
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
#3 · 17y ago
TI
Timmarus
Cool, maybe I could make a hack with this.
#4 · 17y ago
whtlight2
whtlight2
very very good sir
#5 · 17y ago
gwentravolta
gwentravolta
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
#6 · 17y ago
SY
Symbol
VB6 or VB .NET?

Their different.
Meh what do I care, VB sucks IMO.
C Languages ftw
#7 · edited 17y ago · 17y ago
ddd555
ddd555
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
#8 · 17y ago
zlavik
zlavik
i saw this exact post some where i can remeber O_O
#9 · 17y ago
WH
whitten
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.
#10 · 17y ago
SU
sukhans
kk igonna try now

Edit:it works alright but how the hell do i activate it
#11 · edited 17y ago · 17y ago
dranko
dranko
2 bad i cants code...
#12 · 17y ago
SpiKe86
SpiKe86
Its vb6 coding will edit this post later with results. Thanks
#13 · 17y ago
User1
User1
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.
#14 · 17y ago
SU
sukhans
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
#15 · 17y ago
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

  • Cool Visual BASIC clock with code.By PandN in Visual Basic Programming
    0Last post 17y ago
  • My Aimbot source code!By wertoskiller in Combat Arms Hacks & Cheats
    8Last post 17y ago
  • Aimbot source code with videoBy maxius12 in CrossFire Hacks & Cheats
    37Last post 16y ago
  • Aimbot source code with videoBy maxius12 in CrossFire Hacks & Cheats
    5Last post 16y ago
  • Cross Fire Aimbot Source CodeBy lol~lol in CrossFire Hacks & Cheats
    30Last post 16y ago

Tags for this Thread

#aimbot#basic#code#source#visual