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 › [HELP] Fast Mouse Click Code[Solved]

Exclamation[HELP] Fast Mouse Click Code[Solved]

Posts 1–7 of 7 · Page 1 of 1
<(
<(-_-)>
[HELP] Fast Mouse Click Code[Solved]
Public Class Form1
Private Declare Sub mouse_event Lib "user32" (ByVal dvflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dvextrainfo As Long) Private Const mousclickup = 4 Private Const mousclickdown = 2
Private Const mouseclickup = 4
Private Const mouseclickdown = 2
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
mouse_event(mouseclickdown, 0, 0, 0, 0)
mouse_event(mouseclickup, 0, 0, 0, 0)
End Sub

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim hotkey As Boolean
hotkey = GetasynckeyState(Keys.F9)
If hotkey = True Then Timer1.Start()
Dim hotkey1 As Boolean
hotkey1 = GetasynckeyState(Keys.F10)
If hotkey1 = True Then Timer1.Stop()
End Sub
End Class








Could anyone help me with this???? im confused
#1 · 16y ago
Shark23
Shark23
Why do you have the hotkeys on a timer event? Also, you never start timer2 so it will never tick.

EDIT: And what, specifically, is your problem? I just tried it and it clicks a **** ton of times which is what its supposed to do. Right?

EDIT the EDIT: If it's the hotkeys not working, you haven't started timer2 so it will never tick and the hotkeys won't work. Just add:
Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer2.Start()
    End Sub
and it should work fine with the hotkeys.
#2 · edited 16y ago · 16y ago
Shark23
Shark23
Alright, well you told me that it didn't click at all when you tried it. I have:

[php]Public Class Form1
'Declare mouseclick
Private Declare Sub mouse_event Lib "user32" (ByVal dvflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dvextrainfo As Long)
Private Const mouseclickup = 4
Private Const mouseclickdown = 2
'Get hotkeys
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Timer start on button1 click
Timer1.Start()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'Timer stop on button2 click
Timer1.Stop()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'When timer ticks, click mouse
mouse_event(mouseclickdown, 0, 0, 0, 0)
mouse_event(mouseclickup, 0, 0, 0, 0)
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
'Declare hotkeys
Dim hotkey As Boolean
'Key F9 starts timer1
hotkey = GetAsyncKeyState(Keys.F9)
If hotkey = True Then Timer1.Start()
'Key F10 stops timer1
Dim hotkey1 As Boolean
hotkey1 = GetAsyncKeyState(Keys.F10)
If hotkey1 = True Then Timer1.Stop()
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer2.Start()
End Sub
End Class[/php]

Now I see that you have:
Code:
Private Const mousclickup = 4 Private Const mousclickdown = 2
Private Const mouseclickup = 4
Private Const mouseclickdown = 2
twice on it. Try what I have written. Works fine for me.
#3 · 16y ago
Zoom
Zoom
C&P doesn't work.
#4 · 16y ago
MvRouC12
MvRouC12
This is leeched form crossfire isn't it?
#5 · 16y ago
Shark23
Shark23
This should be closed. It's already been solved since he released a fast clicker already.
#6 · 16y ago
Invidus
Invidus
put PHP/Code tags please.
Edit: Shark don't double post.
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • [HELP]Fast Mouse Click[Solved]By <(-_-)> in Visual Basic Programming
    5Last post 16y ago
  • [HELP] Mouse ClicksBy Golden. in Visual Basic Programming
    1Last post 16y ago
  • [SOLVED]HELP FASTBy SK61 in Call of Duty Modern Warfare 2 Help
    11Last post 16y ago
  • [Help]Open link click of button[Solved]By iFrank1 in Visual Basic Programming
    7Last post 16y ago
  • [SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )By CainFool in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    4Last post 16y ago

Tags for this Thread

None