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 › [TuT]Very Basic Hotkeys

[TuT]Very Basic Hotkeys

Posts 1–5 of 5 · Page 1 of 1
IA
Iamazn
[TuT]Very Basic Hotkeys
This is Some VERY BASIC Hotkeys

Code:
Public Class Form1
    Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean

        Select Case (keyData)
            Case Keys.F10
'Replace F10 with the hotkey you want.
'Code here.
            Case Keys.F11
'Replace F11 with the hotkey you want.
'Code here.
        End Select
        Return MyBase.ProcessDialogKey(keyData)
    End Function

Heres a Basic setup for HotKeys with a AutoTyper

Code:
Public Class Form1
    Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean

        Select Case (keyData)
            Case Keys.F10
                Timer1.Start()
            Case Keys.F11
'When I tested this, the Timer1.Stop didnt work. But you can still try.
                Timer1.Stop()
        End Select
        Return MyBase.ProcessDialogKey(keyData)
    End Function
#1 · edited 17y ago · 17y ago
That0n3Guy
That0n3Guy
Why not just use MCLHotkey.ocx?
#2 · 17y ago
IA
Iamazn
Quote Originally Posted by That0n3Guy View Post
Why not just use MCLHotkey.ocx?
I dont know what that is 
Wont both work the same way?
#3 · 17y ago
TR
trevor206
Why not just use GetASyncKeyState its way more simple than that(but thats my opinion)
#4 · 17y ago
That0n3Guy
That0n3Guy
Quote Originally Posted by Iamazn View Post
I dont know what that is 
Wont both work the same way?
No, the OCX file make's it a lot easier.

Add my attachment as a component, and use it like you would a timer, when you click it you'll see a property, VKey, set that to the key you want to use and then double click the item it added to your form and put your code there.
#5 · 17y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [TuT]Very Basic Broken TextBy Dorado in Tutorials
    16Last post 17y ago
  • [TuT]Very Basic Broken TextBy Dorado in Help & Requests
    2Last post 17y ago
  • one of my basic hotkey hacksBy mtbman19 in WarRock - International Hacks
    15Last post 18y ago
  • [Tut visual basics 2008] How to make a Password protection (for beginners)By apezwijn in Visual Basic Programming
    3Last post 17y ago
  • Very Basic ChamsBy ploxide in C++/C Programming
    5Last post 17y ago

Tags for this Thread

#basic#hotkeys#tutvery