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 › Mouse Clicking [solved]

Mouse Clicking [solved]

Posts 1–9 of 9 · Page 1 of 1
CO
cook91c
Mouse Clicking [solved]
OK so last night was the first time i ever even looked at visual basic code so please take it easy on me. I am trying to make a very basic boxing bot for the game dark orbit just to learn basics. So far i am able to wright code to make the cursor move but i can't get it to click where it stops. Can any one give me a hand??
#1 · 15y ago
Blubb1337
Blubb1337
[highlight="VB.Net"]Public Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)

Public Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down
Public Const MOUSEEVENTF_LEFTUP = &H4 ' left button up

Public Sub SimulateClick()
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
End Sub[/highlight]

Execute the SimluateClick Sub after moving your mouse.

[highlight="VB.Net"]SimulateClick()[/highlight]
#2 · 15y ago
willrulz188
willrulz188
Umm I guess it's in a timer soo try timer1.stop()

@Blubb1337 he's trying to make it stop he said he already got the click part done
#3 · 15y ago
Arystar Krory
Arystar Krory
Here is my advice. Read some tutorials. Learn the commands. From there on it's easy. Took me less than a day to learn enough to write a bot for Aika online.

If you can't find what you're looking for on the amazing collection of tutorials Here, then you can always try google :P

Good luck!
#4 · 15y ago
Blubb1337
Blubb1337
@cook91c

Quote Originally Posted by willrulz188 View Post
Umm I guess it's in a timer soo try timer1.stop()

@Blubb1337 he's trying to make it stop he said he already got the click part done
He shouldn't be using a timer at all if it's just for moving the mouse. If the timer runs all the code required for the bot, there is no need to stop the timer during clicking, I don't see a reason why.

Sure if he wants to stop his timer...

[highlight="VB.Net"]Timer1.Stop[/highlight]
#5 · 15y ago
CO
cook91c
I'm not using a timer. It moves the cursor to the spot i need it to go when i click the start button. But the problem is i need it to click on that spot it moved the cursor to and i can not figure out how to do that. Sorry for the confusion should of worded it better.
#6 · 15y ago
Blubb1337
Blubb1337
Quote Originally Posted by cook91c View Post
I'm not using a timer. It moves the cursor to the spot i need it to go when i click the start button. But the problem is i need it to click on that spot it moved the cursor to and i can not figure out how to do that. Sorry for the confusion should of worded it better.
See my first reply then.
#7 · 15y ago
CO
cook91c
Idk what I'm doing wrong
Code:
Public Class Form1


    Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Cursor = New Cursor(Cursor.Current.Handle)
        Cursor.Position = New Point(Cursor.Position.X + 751, Cursor.Position.Y + 296)

    End Sub
    Public Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)

    Public Const MOUSEEVENTF_LEFTDOWN = &H2
    Public Const MOUSEEVENTF_LEFTUP = &H4

    Public Sub SimulateClick()
        mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
        mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
    End Sub
End Class
#8 · 15y ago
Blubb1337
Blubb1337
You are not executing the sub.

[highlight="VB.Net"]Public Class Form1


Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Cursor = New Cursor(Cursor.Current.Handle)
Cursor.Position = New Point(Cursor.Position.X + 751, Cursor.Position.Y + 296)
SimulateClick()
End Sub
Public Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)

Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4

Public Sub SimulateClick()
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
End Sub
End Class[/highlight]
#9 · 15y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • [HELP]Fast Mouse Click[Solved]By <(-_-)> in Visual Basic Programming
    5Last post 16y ago
  • [HELP] Fast Mouse Click Code[Solved]By <(-_-)> in Visual Basic Programming
    6Last post 16y ago
  • Storing Mouse ClicksBy gwentravolta in Visual Basic Programming
    9Last post 16y ago
  • Method to Stimulate Mouse ClicksBy zhaoyun333 in C++/C Programming
    0Last post 16y ago
  • Get Mouse ClickBy Xocitus in C++/C Programming
    4Last post 19y ago

Tags for this Thread

None