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] Hotkeys - VB 08

[TuT] Hotkeys - VB 08

Posts 1–14 of 14 · Page 1 of 1
iownageXD
iownageXD
[TuT] Hotkeys - VB 08
Alright, you need to ATLEAST know the basics for this.
At the top, after Public Class Form# Add in this code:

Code:
Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
or this one if that doesn't work for you:

Code:
Public Declare Function GetAsyncKeyState Lib "User64" (ByVal vKey As Long) As Integer
Now in a timer, add this:
Code:
Dim Hotkey1 As Boolean
        Hotkey1 = GetAsyncKeyState(Keys.ReplaceThisWithHotKey)
        If Hotkey1 = True Then
            Timer1.Enabled = True
        End If
To explain the timer, so you can edit this code for your own hotkey..
Hotkey1 = String, so you can rename to whatever you want.
ReplaceThisWithHotKey = Replacing the word with the hotkey you want, VB 08 has auto complete for hotkeys.
Timer1.Enabled = True = The action it does if you press the hotkey.

Edit: Also, double click on your form and write in Timer#.Enabled = True - then replace # with whatever number timer you have.
#1 · 16y ago
No5cope
No5cope
does this work in combat arms??? cause i need one to work for my bunny hopper
#2 · 16y ago
LE
LegendaryAbbo
you do it the complicated way... you can do it in less lines and easier.

I'll show you when I install vb08 just to make sure I get it right, (im 100% certain for vb6.0 but only about 80% for 08 :P)

Quote Originally Posted by liquidforce View Post
does this work in combat arms??? cause i need one to work for my bunny hopper
This is saying if you press this make this happen, not saying press this key for me.
#3 · 16y ago
CO
CodeHPro
this is the worst way to do hotkeys
#4 · 16y ago
maarten551
maarten551
not really because you can use this even if you not have your program selected

it works in-game for me :P

i don't know if it works in combat arms
#5 · 16y ago
CO
CodeHPro
Quote Originally Posted by maarten551 View Post
not really because you can use this even if you not have your program selected

it works in-game for me :P

i don't know if it works in combat arms
ya im a noob and didnt no that lol no im not a noob useing a timer for hotkeys is just really dumb you can pres the hotkey 1 time and then it could send 10 commands to your whatever you calling
#6 · 16y ago
iownageXD
iownageXD
Quote Originally Posted by CodeHPro View Post
ya im a noob and didnt no that lol no im not a noob useing a timer for hotkeys is just really dumb you can pres the hotkey 1 time and then it could send 10 commands to your whatever you calling
wdf? that's what hotkeys are supposed to do.. send commands, but you get to choose the commands o.O If you put down 1 comamnd it's not sending it 10 times - You could put that into form_load if you want, it's faster but makes you pressing buttons lag
#7 · 16y ago
ac1d_buRn
ac1d_buRn
How does this hotkey work?
Press it and it program goes, Release it and it stops?

Or press it and it goes even when u let go of the hotkey?
Because i found a tut liek this and when i did it that way it only worked when i was pressing the hotkeys.
#8 · 16y ago
iownageXD
iownageXD
press and when you let go it'll still stay on.
if you guys know more vb you'll know how to make a code that turns itoff.
#9 · 16y ago
ac1d_buRn
ac1d_buRn
Quote Originally Posted by iownageXD View Post
press and when you let go it'll still stay on.
if you guys know more vb you'll know how to make a code that turns itoff.
Im confused =="
I write all that in but how do i get the hotkey to actually start me program?
Is there any additional code i need to write in to make it start?

acid_buRn
#10 · 16y ago
TR
trevor206
Quote Originally Posted by ac1d_buRn View Post
Im confused =="
I write all that in but how do i get the hotkey to actually start me program?
Is there any additional code i need to write in to make it start?

acid_buRn
try to go and watch this http://www.mpgh.net/forum/33-visual-...albasic08.html its a video tut on them
*edit
i don't think you can keep it on without holding it im pretty sure its a hold hotkey.
#11 · edited 16y ago · 16y ago
ac1d_buRn
ac1d_buRn
Quote Originally Posted by trevor206 View Post
try to go and watch this http://www.mpgh.net/forum/33-visual-...albasic08.html its a video tut on them
ive lookied at that vid v4 but when i release the hotkey the program stops.
How do i make it stay on?
#12 · 16y ago
KA
KallOfKolby
Wow I have been looking for this for like an hour!

And guess what IT STILL DOESN'T"T WORK!
Thanks anyway dude.
#13 · 16y ago
maarten551
maarten551
it works i use it to and i like it alot :P
#14 · 16y ago
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

  • [TUT] Hotkeys VB 2008/2010By Zoom in Programming Tutorials
    12Last post 15y ago
  • [TuT]Hotkeys with 1 LetterBy Invidus in Visual Basic Programming
    22Last post 16y ago
  • [Tut] HotkeysBy LightzOut in Combat Arms Hack Coding / Programming / Source Code
    16Last post 16y ago
  • [TuT]Very Basic HotkeysBy Iamazn in Visual Basic Programming
    4Last post 17y ago
  • [Video TUT]How to make hotkeys in visualbasic08By trevor206 in Visual Basic Programming
    7Last post 16y ago

Tags for this Thread

#hotkeys#tut