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 › Storing Mouse Clicks

Storing Mouse Clicks

Posts 1–10 of 10 · Page 1 of 1
gwentravolta
gwentravolta
Storing Mouse Clicks
I want to make a program where the user can click multiple times, and the coordinates for the clicks are stored where you can press a hotkey and all the clicks are repeated by the program. I just need to know how to store the coordinates. If anyone can help me, it would be appreciated.
#1 · 16y ago
Zoom
Zoom
Hmmm.... Try google it! Do you know how to get the cordinates?

U need first to make a timer with some save funticon(maybe my.settings.......) to remember the cordinates then a hotkey:
Code:
hotkey = right.click!
If hotkey = true 
save cordinates!
end if
^^ Will not work because u need a little more hotkey code, search forum and u will find it!

Thats what I think you should do
#2 · 16y ago
maarten551
maarten551
i made this in a program of me

try it i have source with it to

http://www.mpgh.net/forum/33-visual-...k-o-matic.html (go to under for the better version)
#3 · 16y ago
gwentravolta
gwentravolta
Quote Originally Posted by hejsan1 View Post
Hmmm.... Try google it! Do you know how to get the cordinates?

U need first to make a timer with some save funticon(maybe my.settings.......) to remember the cordinates then a hotkey:
Code:
hotkey = right.click!
If hotkey = true 
save cordinates!
end if
^^ Will not work because u need a little more hotkey code, search forum and u will find it!

Thats what I think you should do
i know how to make hotkeys. I need to know how to store the data. But that my.settings is working for now. thanks!

Quote Originally Posted by maarten551 View Post
i made this in a program of me

try it i have source with it to

http://www.mpgh.net/forum/33-visual-...k-o-matic.html (go to under for the better version)
I need something to store around 144 mouse clicks, not just one. But thanks anyways, it's a start. this is easier than my.setting though. i'll give it a try
#4 · edited 16y ago · 16y ago
Zoom
Zoom
Quote Originally Posted by gwentravolta View Post
i know how to make hotkeys. I need to know how to store the data. But that my.settings is working for now. thanks!



I need something to store around 144 mouse clicks, not just one. But thanks anyways, it's a start. this is easier than my.setting though. i'll give it a try
Or you can download "doitagain" ! very good software and free!

edit: You can make 2 comx and store y in comx1 and x in comx!
#5 · 16y ago
gwentravolta
gwentravolta
Quote Originally Posted by hejsan1 View Post
Or you can download "doitagain" ! very good software and free!

edit: You can make 2 comx and store y in comx1 and x in comx!
where's the fun in using someone else's program?
#6 · 16y ago
Zoom
Zoom
Quote Originally Posted by gwentravolta View Post
where's the fun in using someone else's program?
Idk, i just though u needed a software fast, but GJ on making the program. Btw how will you save the cords?
#7 · 16y ago
gwentravolta
gwentravolta
well its clicking through a grid, so i'm just doing x+25, y-12 for now. There are some points where i need certain spots saved though, but ill probably use a list or settings, whichever i find easier to manipulate
#8 · 16y ago
guza44_44
guza44_44
okay here is one i made that does it.

Items needed:
2 labels
combo box
2 timers

put this code underneath (Public Class Form1)
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
    Private Declare Sub SetCursorPos Lib "User32" (ByVal x As Integer, ByVal y As Integer)

    Private Const MOUSEEVENT_LEFTDOWN = &H2
    Private Const MOUSEEVENT_LEFTUP = &H4

    Private Declare Sub mouse_event Lib "User32" (ByVal dwflags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal extrainfo As Integer)
Then on the first timer set its interval to "1" and click enabled, then add this code
Code:
Dim F2key As Boolean
        Dim f3key As Boolean
        F2key = GetAsyncKeyState(Keys.F2) ' you can change f2 to anything you want
        f3key = GetAsyncKeyState(Keys.F3) ' you can change f3 to anything you want
        If F2key = True Then
            Timer1.Enabled = True
        End If
        If f3key = True Then
            Timer1.Enabled = False
        End If
then in your next timer make sure it is "NOT" Enabled and its interval is "100" then add this code to it:
Code:
Dim MousePositionX As Integer = Cursor.Position.X
        Dim MousePositionY As Integer = Cursor.Position.Y
        Dim click As Boolean
        click = GetAsyncKeyState(Keys.LButton)
        If click = True Then
            Label1.Text = MousePositionX
            Label2.Text = MousePositionY
            ComboBox1.Items.Add(Label1.Text + "," + Label2.Text)
        Else

        End If
then the two labels show the locations and then they are saved as an item in the combo box

just turn on with hotkey and click somewhere

and im sure you can figure out the rest with using that code. it should be easy if not ill dink around with that too
#9 · edited 16y ago · 16y ago
maarten551
maarten551
Quote Originally Posted by gwentravolta View Post
i know how to make hotkeys. I need to know how to store the data. But that my.settings is working for now. thanks!



I need something to store around 144 mouse clicks, not just one. But thanks anyways, it's a start. this is easier than my.setting though. i'll give it a try
go to smart click and you see if u press F11(if i'm right otherwise u need to check the info button)
that in listbox1 the X cordinations are saved and in listbox2 the Y cordinations
#10 · 16y ago
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

  • Get Mouse ClickBy Xocitus in C++/C Programming
    4Last post 19y ago
  • Method to Stimulate Mouse ClicksBy zhaoyun333 in C++/C Programming
    0Last post 16y ago
  • [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
  • [HELP] Mouse ClicksBy Golden. in Visual Basic Programming
    1Last post 16y ago

Tags for this Thread

#clicks#mouse#storing