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 › [Tutorial]Using Hotkeys VB 08

[Tutorial]Using Hotkeys VB 08

Posts 1–3 of 3 · Page 1 of 1
Pixie
Pixie
[Tutorial]Using Hotkeys VB 08
This first did not work for me, when I had Windows XP Home edition, but now I have Windows XP Professional Edition, and now the hotkeys work!

So here is a tutorial.

First add these to your form
Code:
1 TextBox
1 Timer

Change Timer1 to Enabled = True


Code:

Code:
Public Class Form1
    Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Dim result As Integer

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If GetAsyncKeyState(Keys.F8) Then
            MsgBox("Hotkeys - Working")
        End If
    End Sub
And if that does not work, then try this one:

Code:
Public Class Form1
    Public Declare Function GetAsyncKeyState Lib "user64" (ByVal vKey As Long) As Integer
    Dim result As Integer

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If GetAsyncKeyState(Keys.F8) Then
            MsgBox("Hotkeys - Working")
        End If
    End Sub

If you have any problems, PM me, and make sure to tell me what you got in the error list.
*DO NOT POST HERE TO TELL ME IF PROBLEMS, I MAY NOT READ THIS MUCH!*
#1 · 16y ago
Zoom
Zoom
First code is for Windows 32bit and secound 64bit!
#2 · 16y ago
K4GE
K4GE
Didn't i already post this like a month ago....
wow...
-.-
#3 · 16y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • [Leeched] Tutorial Using WebcamsBy Bombsaway707 in Visual Basic Programming
    22Last post 16y ago
  • [Tutorial]Global Hotkey[Leeched]By Invidus in Visual Basic Programming
    18Last post 16y ago
  • How do I use hotkey Hacks on laptopBy 1545 in Combat Arms Help
    2Last post 16y ago
  • [TUTORIAL] Using reCAPTCHA in PHPBy AceKill3r in PHP Programming
    0Last post 15y ago
  • [TUTORIAL] Using FindPattern() To Get AddressesBy J in Combat Arms Hack Coding / Programming / Source Code
    5Last post 16y ago

Tags for this Thread

#hotkeys#tutorialusing