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 › HOTKEYS ARGHHH

HOTKEYS ARGHHH

Posts 1–8 of 8 · Page 1 of 1
ac1d_buRn
ac1d_buRn
HOTKEYS ARGHHH
Can someone help me with hotkeys?
I can never get them to work.
I want to make a hotkey that i can use in-game!

Please someone help me..

Thanks
acid_buRn
#1 · 16y ago
Pixie
Pixie
They used to not work for me either, but then I now have 2 OS's on my PC, cause my first 1 got fked up by AleinWare, and now it works, I had
Windows XP Home,
Now I have Windows XP Professional

I will make a tutorial on it in a second
#2 · 16y ago
Erinador
Erinador
Needed:
- A Timer
- A Label (For testing if it works)

Code:

Put this under "Public Class *****"
Code:
Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
Then add this code to your timer:

Code:
Dim HotkeyTrue as Boolean
HotkeyTrue = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
If HotkeyTrue = true Then
Label1.Text = "True"
End if
Code:
Dim HotkeyFalse as Boolean
HotkeyFalse = GetAsyncKeyState(Keys.F11) 'F11 is the hotkey
If HotkeyFalse = True Then
Label1.Text = "False"
End if
Extra:
Enable the timer for the hotkeys.
Set the interval for the hotkeys to 15 millseconds (To prevent lag)



Code tested by me and it works.
#3 · 16y ago
ac1d_buRn
ac1d_buRn
Quote Originally Posted by Erinador View Post
Needed:
- A Timer
- A Label (For testing if it works)

Code:

Put this under "Public Class *****"
Code:
Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
Then add this code to your timer:

Code:
Dim HotkeyTrue as Boolean
HotkeyTrue = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
If HotkeyTrue = true Then
Label1.Text = "True"
End if
Code:
Dim HotkeyFalse as Boolean
HotkeyFalse = GetAsyncKeyState(Keys.F11) 'F11 is the hotkey
If HotkeyFalse = True Then
Label1.Text = "False"
End if
Extra:
Enable the timer for the hotkeys.
Set the interval for the hotkeys to 15 millseconds (To prevent lag)



Code tested by me and it works.
Thanks for that,
Bombsaway707 helped me out yesterday with a very simple code.

Thanks anyway
#4 · 16y ago
gwentravolta
gwentravolta
Why doesn't this work:

Code:
Public Class Form1

    Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim Hotkeyf12, hotkeyq As Boolean
        Dim counter As Integer
        Hotkeyf12 = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
        hotkeyq = GetAsyncKeyState(Keys.Q)
        If Hotkeyf12 = True Then
            counter = (counter + 1)
            Label1.Text = Str(counter)
        Else
            counter = counter
        End If
        If hotkeyq = True Then
            Close()
        End If

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim counter As Integer = 0
        Label1.Text = Str(counter)
        Timer1.Enabled = True
    End Sub
End Class
#5 · 16y ago
DE
deocute
Quote Originally Posted by gwentravolta View Post
Why doesn't this work:

Code:
Public Class Form1

    Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim Hotkeyf12, hotkeyq As Boolean
        Dim counter As Integer
        Hotkeyf12 = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
        hotkeyq = GetAsyncKeyState(Keys.Q)
        If Hotkeyf12 = True Then
            counter = (counter + 1)
            Label1.Text = Str(counter)
        Else
            counter = counter
        End If
        If hotkeyq = True Then
            Close()
        End If

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim counter As Integer = 0
        Label1.Text = Str(counter)
        Timer1.Enabled = True
    End Sub
End Class
have you tried declaring outside?

usually i dont do declarations inside events/functions

well thats just me XD
#6 · 16y ago
gwentravolta
gwentravolta
Quote Originally Posted by deocute View Post
have you tried declaring outside?

usually i dont do declarations inside events/functions

well thats just me XD
well it was working for the "true" "false" stuff, so i thought it would still work. i normally declare outside too. i'm thinking maybe i'ts going too fast fo my computer? but then again, adding 1 shouldn't take up any memory at all that or somehow it's getting reset to 0 every time
#7 · 16y ago
DE
deocute
Quote Originally Posted by gwentravolta View Post
well it was working for the "true" "false" stuff, so i thought it would still work. i normally declare outside too. i'm thinking maybe i'ts going too fast fo my computer? but then again, adding 1 shouldn't take up any memory at all that or somehow it's getting reset to 0 every time
coz every time the timer ticks it makes new variables, it declares every tick, thats why its resetting its values,

uhmm try it outside, the declaration part
#8 · 16y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • Hotkeys in C++By Dave84311 in C++/C Programming
    7Last post 19y ago
  • vb hotkeysBy cjg333 in General Game Hacking
    7Last post 18y ago
  • Hotkeys for a VB trainerBy scooby107 in Visual Basic Programming
    10Last post 19y ago
  • [Tutorial] How To Mack HotKeys On VBBy TheRedEye in WarRock - International Hacks
    32Last post 19y ago
  • My hack release hotkey v1By purenoob134 in WarRock - International Hacks
    23Last post 19y ago

Tags for this Thread

#arghhh#hotkeys