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]Record Button Down Length

Question[Help]Record Button Down Length

Posts 1–11 of 11 · Page 1 of 1
PP
ppl2pass
[Help]Record Button Down Length
For example,
If i click the button d for 5 seconds.
The program will tell me that i clicked it for 5 seconds.
#1 · 16y ago
~J8y~
~J8y~
you want that coded???

if you want i think i can....pm me with more info......like the skin you want and other features....i can code it for you in a day or so.
#2 · 16y ago
PP
ppl2pass
basically i just need the code.

so if i hold the d button for 5 seconds, the program will tell me that i held the d for 5 seconds.
#3 · 16y ago
NextGen1
NextGen1
Skin.....what?...

Simply create a label, a timer , set time interval to 1000(1 sec)
timer starts on key down and stops on key up, timer is label1.text = label1.text + 1, use the final number for the data you need.
#4 · 16y ago
~J8y~
~J8y~
Nextgen.....

1. Your one of the better VB coders....
2. I was thinking he whated me to make him one..
#5 · 16y ago
NextGen1
NextGen1
nah, just needs help on the coding, in my VB Mpgh SDK i wrote I have the keyboard hook module I made, add it to your project, and turn the timer on and off using standard key hook methods

Button pressed = on
Button Released = off

Should work, and it's super easy as opposed to the few other methods
#6 · 16y ago
PP
ppl2pass
whats the key down and key up event?
#7 · 16y ago
PP
ppl2pass
btw when i tried using your keyboard hook it said it failed to attach.
#8 · 16y ago
NextGen1
NextGen1
Did you read the whole thing? if you read the documentation, it says vb will block the hook, i explained which setting to shut off


Info: I added this to the module as well as a reminder but Because of visual basic settings and the fact that
VB will attempt to hook the keyboard. To Debug, Build and run .exe from project/debug folder or Modify Settings, Project ---> Application Name Properties ---> Debug ---> Uncheck the checkbox "Enable the Visual Studio hosting process”

#9 · edited 16y ago · 16y ago
PP
ppl2pass
it hooked. yay.

how can i implement the key press event?
#10 · 16y ago
CO
Comet
Quote Originally Posted by ~J8y~ View Post
you want that coded???

if you want i think i can....pm me with more info......like the skin you want and other features....i can code it for you in a day or so.
In a day or so? it takes 2 mins - 3 hours dude.

Just count how long you hold a button down for?
#11 · 16y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] Binding button to textboxBy Archangel in Visual Basic Programming
    2Last post 16y ago
  • [Help]Change Button Text[Solved]By [PA]nts in Visual Basic Programming
    7Last post 16y ago
  • [Help] Hide Button [Solved]By Hahne in Visual Basic Programming
    3Last post 16y ago
  • [Help] Mouse buttonBy Maniac101 in Visual Basic Programming
    20Last post 16y ago
  • [Help] Movable Buttons[Solved]By omghacker in Visual Basic Programming
    10Last post 15y ago

Tags for this Thread

None